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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.