Monday, June 6, 2011

How would you rewrite this url in htaccess (mod rewrite)?

';http://www.domain.com/dir/index.php?par?br>
to

';http://www.domain.com/dir2/';



Is it possible to do this with htaccess mod rewrite? If so, how?

Please take note of the fact that I also want to change the directory name. I'm trying to avoid using a frame.



Thanks a lot for your help!How would you rewrite this url in htaccess (mod rewrite)?
RewriteBase /dir

RewriteCond %{QUERY_STRING} parameter=value

RewriteRule index.php /dir2/



Assuming htaccess is in /dir/ and not in document root.

No comments:

Post a Comment