![]() |
.htaccess masters, Help needed.
hi all.,
how do i do this ., i want to redirect all error/non existed pages to home page but not using errodocumnet 404 thing as it would show 404 in header., rather i want header to show 301 redirect. how do i do that ? so if i check header for nonexisted page link like www.blahblah.com/nonexisted.html it should thorw HTTP/1.1 301 Moved Permanently in header. thanks for your time. |
gfy "webmaster forum" lol
2 seconds on Google gets what you need http://www.htaccessredirect.net/index.php |
Quote:
You didnt read my post. or am i missing something here ? |
ErrorDocument 404 /index.php
|
You might as well use 404, as redirecting many pages back to the home page with 301 will give you no SEO benefit. The idea is to redirect individual old pages to individual new pages, unless you do that the SEO benefit is null.
If you really want to throw a 301 for every page you don't have on your site then do it in Perl or PHP using the guide here: http://www.seoworkers.com/seo-articl...tml#modrewrite |
Quote:
Code:
# If requested resource exists as a file or directory, skip next ruleI hacked someone else's code so double check it. I also made it 302 becasue 301 is a really really stupid idea in this situation. |
| All times are GMT -7. The time now is 11:08 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123