pioneerx01 Posted December 6, 2013 Share Posted December 6, 2013 Hi, I have hit a communication proplem with my project and people involved. Long story short, wrong URLs got released. I need to find a way to change only one directory in URL, here is na example A wrong URL would be: www.mysite.com/state/event17_dev/register/school.php I need it to be redirected to: www.mysite.com/state/event17/register/school.php So only the event17_dev needs to be changed to event17 while the othe directories and pages stay intact. Thanks Link to comment https://forums.phpfreaks.com/topic/284594-redirecting-directories-with-htaccess/ Share on other sites More sharing options...
pioneerx01 Posted December 7, 2013 Author Share Posted December 7, 2013 I am going to answer my own question. In .htaccess file put: redirect /state/event17_dev/ http://www.mysite.com/state/event17/ Link to comment https://forums.phpfreaks.com/topic/284594-redirecting-directories-with-htaccess/#findComment-1461538 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.