| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Rewrite rule help!|
| 10:28 pm on Feb 14, 2003 (gmt 0)|
Hi all, this is my first time here :-)
Anyone expert on rewrite rules? I hope so as I really need help with this.
I've been given some code below but need to change how it works - please see...
RewriteRule ^.*L([0-9]+)\.html$ /Detailed/$1.html [L]
This rewrite make this: /go/easter_L11.html
fetch a file called: /go/11.html
Now I need to change the first part of the rewrite so this: /go/11_easter.html
goes to /go/11.html
I hope I made this clear - boy this stuff is confusing!
| 10:33 pm on Feb 14, 2003 (gmt 0)|
... Or to put it another way,
RewriteRule ^.*L([0-9]+)\.html$ that matches: /go/anything_L11.html
Needs to be changed to match this: /go/11_anything.html
| 10:39 pm on Feb 14, 2003 (gmt 0)|
Welcome to WebmasterWorld, Tozoo.
There sure are some who know about mod_rewrite! Here's a great basic tutorial that you're sure to find helpful:
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved