Welcome to WebmasterWorld Guest from 54.145.166.96

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Rewrite rule help!

   
10:28 pm on Feb 14, 2003 (gmt 0)

10+ Year Member



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)

10+ Year Member



... 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

10:39 pm on Feb 14, 2003 (gmt 0)

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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...]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month