Redirect to a specific url depending upon the base url using htaccess file

Posted by Goysar on Stack Overflow See other posts from Stack Overflow or by Goysar
Published on 2010-03-16T13:28:24Z Indexed on 2010/03/16 13:46 UTC
Read the original article Hit count: 309

Filed under:
|
|
|
|

I am using htaccess to redirect to url with page description. For example

RewriteRule ^Flash$ /index.php?section=flash [L,NC]

By using this code when i hot domain.com/Flash it redirects me to www.domain.com/index.php? section=flash. This works fine. But now what i want to have two more site with the same htaccess file.

So can anyone help me in redirecting the url with same htaccess for multiple site. Can i find the base url and redirect depending on that??

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about redirect