Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

how to use rewrite_map

6:40 pm on Sep 12, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 15, 2002
votes: 0

My requirement is given the name of the incoming domain, rewrite the URL to serve a page from a subdirectory. The other condition is I have lots of these so I need to use rewrite map to separate them.

What is the format of the map file and what are the lines in the .htaccess file I need to write to get the map file and how to redirect each entry to an appropriate subdirectory. Thanks.

6:55 pm on Sept 12, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
votes: 0

You can find the answers in the mod_rewrite documentation [httpd.apache.org] and the URL Rewriting Guide [httpd.apache.org]. If you have problems after having read those post the code you have so far and everybody will gladly help you.