Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Mod_rewrite regexp

6:05 pm on Aug 6, 2003 (gmt 0)

New User

10+ Year Member

joined:June 14, 2003
votes: 0


I've just started to play with mod_rewrite in Apache.
I've following situation: I want to change this address:


to something like this:


but the address should also be only:






Can somebody help me to create regexp, which will fit all this "situations", if it's possible.

Thank you

6:27 pm on Aug 6, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 21, 1999
votes: 0

This ain't the regex help desk! ;) :)

Here are some great resources. Do some reading and someone will probably help you debug YOUR solution if necessary.


11:33 pm on Aug 6, 2003 (gmt 0)

Senior Member

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

joined:Mar 31, 2002
votes: 0


...And we should point out that the usual application of mod_rewrite is to rewrite static URLs to dynamic URLs for input to your scripts. Your scripts and pages output links like category/store/filter/flowers/from/0/rows/20/ for users and robots to see and link to, and mod_rewrite is then used to convert these into the form needed to call your script when one of these static URLs is requested.

That is, mod_rewrite is used to translate an http request for [yourdomain.com...] into a request for /main.php?load=store&filter=flowers&from=0&rows=20 and activate your php script.



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members