Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  PostNuke 0.7 Support ::  XTE Support ::  Rewrite rule to change from news_index###.html to...

Moderated by: Support Team

Bottom
Rewrite rule to change from news_index###.html to...

  • Link to this postingPosted: 03.12.2004, 07:23
    Profile Homepage
    chris01
    rank:
    Freshman Freshman
    registered:
     January 2003
    Status:
    offline
    last visit:
    04.12.04
    Posts:
    9
    Article###.html

    I had SnakeSEO installed when I was running an older version of PN. I upgraded to .750 Gold and I'm using the Xanthia shorturls. The new ShortURLs are working great. Google still has the "old" SnakeSEO urls. Rather than wait for Google to reindex all 1000+ news stories...

    Is there a rewrite rule to change the old SnakeSEO URL to the new Xanthia ShortURL?

    i.e. change http://www.domainname.com/news_index111.html to http://www.domainname.com/Article111.html

    I have tried changing or adding things to /modules/Xanthia/plugins/outputfilter.shorturls.php but have been unsuccessful. I'm guessing the key to resolution is in the .htaccess file but I have no idea how to modify an existing rule to do the job.

    Thanks for any help.
  • Link to this postingPosted: 03.12.2004, 18:57
    Profile Homepage
    iammaxus
    rank:
    Helper Helper
    registered:
     June 2004
    Status:
    offline
    last visit:
    29.04.05
    Posts:
    167
    You are right. The best solution is probably to add a line to the .htaccess that rewrites articlexxx.html but leave the outputfilter that way google will find new articles with the new URL style. Probably even better would be a way to forward the articlexxx.html to the new URL, but im not sure how to do that. Anyway, if you start looking at the rewrite rules, you should be able to figure out approximately how it works and add the proper line. If you can't I'll take a look at it when i get home.
  • Link to this postingPosted: 04.12.2004, 09:38
    Profile Homepage
    chris01
    rank:
    Freshman Freshman
    registered:
     January 2003
    Status:
    offline
    last visit:
    04.12.04
    Posts:
    9
    I'm trying to modify a rewrite rule. I'm not having much luck yet though. This is what I have now.
    Code
    # 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]

    I added this under the other two but it isn't working.
    Code
    RewriteRule ^Article([0-9]+)-([0-9]+)\.html$ news_index$1.html [L,NC,NS]

    Any idea what I have left out or where I'm going wrong?

Start ::  PostNuke 0.7 Support ::  XTE Support ::  Rewrite rule to change from news_index###.html to...

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula