Jump to content

redirect /


divinequran

Recommended Posts

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,

Link to comment
https://forums.phpfreaks.com/topic/178366-redirect/
Share on other sites

  • 2 weeks later...

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.

Link to comment
https://forums.phpfreaks.com/topic/178366-redirect/#findComment-949383
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.