Core Modules & Blocks  :: 
Any way to make pages SE friendly after <!--pagebreak--&g
 Top

  • Is there any way to make content after search engine (and user) friendly? It seems it shouldn't be too difficult. Since articles are already rewritten to Article1.html, Articel 5.html, etc... It seems pages could be rewritten to Article1-page4.html, for instance.

    I'm not a coder myself but I don't mind digging into the code for simple stuff.

    --

    ~ WebTrooper ~


    "If I had a signature it would be here, but I don't."
  • I think I'm on the right track. From reading up on how .htaccess works, I added the second and third RewriteRule:

    # Articles / Articoli
    RewriteRule ^Article([0-9]+)\.html$ modules.php?op=modload&name=News&file=article&sid=$1&mode=thread&order=0&thold=0 [L,NC,NS]

    RewriteRule ^Article([0-9]+)-([A-Za-z=]+)(-order([0-9]))?(-threshold([0-9\-]{1,2}))?\.html$ modules.php?op=modload&name=News&file=article&sid=$1&mode=$2&order=$4&thold=$6 [L,NC,NS]

    RewriteRule ^Article([0-9]+)-Page([0-9]+)\.html$ modules.php?op=modload&name=News&sid=$1&file=article&pageid=$2 [L,NC,NS]

    RewriteRule ^Article([0-9]+)-Page([0-9]+)-([A-Za-z=]+)(-order([0-9]))?(-threshold([0-9\-]{1,2}))?\.html$ modules.php?op=modload&name=News&file=article&sid=$1&mode=$2&order=$4&thold=$6 [L,NC,NS]

    It doesn't redirect like http://www.freesitescripts.com/Article5.html does, but I can manually type in www.freesitescripts.com/article5-page2.html , I get the page, but missing images and styles.

    Well, I'm going back to work on it. Could use some ideas!

    Update: I don't know what I did but as you can see, the friendly URL is working. However, I still have no idea how to configure to create short urls in the << 1 2 3 >> thingy.

    --

    ~ WebTrooper ~


    "If I had a signature it would be here, but I don't."
  • Okay, I'm stuck. I was on it all night havn't gotten any farther than described in the previous post.

    What I need to accomplish is to;
    A) Make the page number links created by open to the friendly URL, www.freesitescripts.com/Article5-Page3.html
    B) fix the broken images and styles when using the friendly urls.

    I could realy, really use some advice on this. Also, I imagine this would be a really popular fix.

    --

    ~ WebTrooper ~


    "If I had a signature it would be here, but I don't."
  • Well, it looks like I'm on my own with this one, eh? icon_rolleyes

    Can someone tell me at least, what part of what module writes the page numbers. I think if I can make it work if only I knew where to apply the rewrite rules. Am I on the right track here?

    Also, has this already been done? It seems anyone who uses (most I imagine) would like friendly urls for their pages.

    My eyes are glassing over, but I ain't giving up. Could use some feedback! :D

    --

    ~ WebTrooper ~


    "If I had a signature it would be here, but I don't."
This list is based on the users active over the last 60 minutes.