Aty
Elite Member
- Jan 27, 2011
- 7,631
- 5,300
---- THREAD CLOSED 02/19/2015 ----
So my .htaccess file currently looks like this and it is working fine.
Now I would like to redirect two 404 pages to the homepage for the link juice.
I tried like this below but for some reason I cannot access the homepage anymore.
Anyone has a working code for my above described needs?
So my .htaccess file currently looks like this and it is working fine.
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Now I would like to redirect two 404 pages to the homepage for the link juice.
I tried like this below but for some reason I cannot access the homepage anymore.
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Redirect 301 /index.htm http://www.example.com/
Redirect 301 /m http://www.example.com/
Anyone has a working code for my above described needs?