Google has indexed certain pages in my website that I wouldn’t like users to access directly but from the homepage (forexample).
Using .htaccess how can I redirect incoming outside links to certain pages and make it go to my homepage?
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.
To prevent Google from indexing specific pages on your site in future, use a noindex meta tag.
To send specific pages to the home page, e.g.
http://mysite.com/somddir/somepage.htmadd the following to your .htaccess in the root directory of your siteBe sure to use
R=302and not301, which is permanent.