Phenomen Posted January 21, 2012 Share Posted January 21, 2012 Hi there,I am breaking my head to a htaccess issue. I am trying to rewrite my dynamic urls, which works fine. However, when I enter the old url the browser is not redirecting the old url to the new url.This is the code I am using:RewriteRule ^([a-zA-Z0-9-z\-]+)/$ search.php?a=$1RewriteRule ^([a-zA-Z0-9-z\-]+)$ search.php?a=$1For example; if one enters domain.com/search?a=word the url should transform to domain.com/word.Is there anyway who can help me with the redirect part?Thanks in advance! I tried like 1000 tutorials but they all just rewrite the url and do not redirect the old url to the new one. Link to comment Share on other sites More sharing options...
Phenomen Posted January 22, 2012 Author Share Posted January 22, 2012 Nobody? Link to comment Share on other sites More sharing options...
boen_robot Posted January 22, 2012 Share Posted January 22, 2012 See the Redirect and RedirectMatch directives. Link to comment Share on other sites More sharing options...
Phenomen Posted January 22, 2012 Author Share Posted January 22, 2012 Thanks mod, still cant fix the problem tho.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.