Fork me on GitHub

Module: News  Bottom

Go to page [-1] 1 - 2:

  • index.php/News/1/Display/Woot_my_frist_article/

    I wonder if it is wise to use SEO with slashes as it confuses the browsers -

    index.php_News_1_Display_Woot-my-frist-article

    seems to cause less problems, well it did for me during development of One Ring. the underscore character is not normally used in titles, but if it is you could add a string replace. Also I am not sure, but it seems that the entire query is required to display the data where it should only require the article and cat ids so if you change the title of your article it will still bring up the correct content. All text / title should have no effect whatsoever on the validitiy of the query string.

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Lobos

    index.php/News/1/Display/Woot_my_frist_article/

    I wonder if it is wise to use SEO with slashes as it confuses the browsers -

    index.php_News_1_Display_Woot-my-frist-article

    seems to cause less problems, well it did for me during development of One Ring.
    -Lobos

    I'm not seeing why browsers would be confused, care to explain that a bit?
  • Well it has a lot to do with relative paths - and it also messes things up if you happen to use your server for other things apart from postnuke (although they may have something to stop this happening). So if you have some files for download in mysite.com/downloads/ (maybe this is not the case?) or if you use relative urls like index.php?module=lala the browser will think it is

    index.php/News/1/Display/Woot_my_frist_article/index.php?module=lala

    I am not sure if these issues are addressed or not, but this was some of the stuff that I delt with when I implemented my SEO.


    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • When using slashes in URL's, it's true that links tend to append on the current path if they're not complete.

    When using slashes, which in my oppinion is THE way to build URL:
    /News/1/My-first-arcticle
    /Reviews/2/The-PS3
    /Forum/topic/453
    /PhotoAlbum/5/My-vacation-on-the-moon

    When there are links in the HTML that are like: admin.php or whatever, they'll be appended to the current path, which is in the case of the news module: /News/1/My-first-article/admin.php

    By adding one line to the design/templates, this problem is solved.
    <base href="<!--pngetbaseurl-->"> (or whatever the baseurl is used in Xanthia)

    Using that, all non prefixed links (admin.php instead of http://site.com/admin.php) are correct, because the base-href ellement will prefix those links (check any cached page on SE's, same thing)

    So, it would be confusing to browsers, as long as the designer uses the proper tags icon_wink



    edited by: ZarToXidE, Mar 08, 2007 - 10:13 PM
  • Cool about the base tag - I didn't know about this HTML tag icon_eek

    Do you have any info on the other point that I mentioned about accessing directories on your webserver with this SEO running.

    For example I have pn8 running on the root of www.mysite.com - I then decide to add some more sites in sub directories, eg www.mysite.com/subsite1/ www.mysite.com/subsite2/ will these still run ok? Like I said I am not sure if they tackeled this or not. Actually I would be intereseted to know if there is a solution to this as I could use someting similair for my project.

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Yes that can be done.

    Look at the .htaccess file provide in the .7x series. You'll see a few directories that are excluded from being rewritten. Add any non-postnuke stuff in the .htacess and it will work.

    Making /news/1/display/some-article, valid and pull the data from index.php/news/1/display/some-article where each exlcuded directory will be called as they're called without being rewritten.

    Quote

    RewriteRule ^subsite1/.*$ - [PT]
    for example.

Go to page [-1] 1 - 2:

This list is based on users active over the last 60 minutes.