homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Rewrite rule help!
Tozoo




msg:1518448
 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!

 

Tozoo




msg:1518449
 10:33 pm on Feb 14, 2003 (gmt 0)

... Or to put it another way,

This:

RewriteRule ^.*L([0-9]+)\.html$ that matches: /go/anything_L11.html

Needs to be changed to match this: /go/11_anything.html

Marcia




msg:1518450
 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:

[webmasterworld.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved