Iam working on Ubuntu.(Linux)
I want to redirect from the page one.php to two.php, which are in a folder ‘test’
How can i do this, using .htaccess file?
Any other setting is needed for this?
Or .htaccess redirection will not work for local system
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It should work fine. Assuming the URL is http://localhost/test/one.php:
That’ll do an invisible redirection—the browser won’t know, and won’t show it in the URL. If you want to do a different kind of redirect, you can specify
R=###in the flags, where###is the HTTP status code. For example, to perform a permanent redirect: