divinequran Posted October 20, 2009 Share Posted October 20, 2009 Hello, I have two questions here 1) I have redirected http://w3calculator.com/info/free-code/LINUX/shell-script-to-modify-directory-permission from /freecode/test.php Now if i type /LINUX in the URL it says URL not valid. I want it to be redirected to http://w3calculator.com/info/free-code/index.php 2) If i type http://w3calculator.com/info/ in address bar then it has to redirected to http://w3calculator.com/info/free-code/index.php I dont want to redirect using RewriteRule ^(.*)$ /info/free-code/index.php because it creates lot of problem to other code. Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/178366-redirect/ Share on other sites More sharing options...
divinequran Posted November 2, 2009 Author Share Posted November 2, 2009 Hi, now i want to redirect w3caluulator/info to http://info.w3calculator.com. Any idea? This one make me .. Quote Link to comment https://forums.phpfreaks.com/topic/178366-redirect/#findComment-949379 Share on other sites More sharing options...
divinequran Posted November 2, 2009 Author Share Posted November 2, 2009 Hi, now i want to redirect w3caluulator/info to http://info.w3calculator.com/ This one make me .. RewriteCond %{REQUEST_URI} \/$ RewriteRule ^$ /free-code/index.php [R] I know this one creates problem. Any way to change this? and i want it to redirect to http://info.w3calculator.com It was working fine in my previous hosting. These is some thing with apacha. Quote Link to comment https://forums.phpfreaks.com/topic/178366-redirect/#findComment-949383 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.