neilgee
6/17/2014 - 2:38 AM

Redirect all Pages to Home Page in .htaccess

Redirect all Pages to Home Page in .htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? http://yourdomain.com/ [R=301,L]
RewriteRule ^/index\.php$ http://yourdomain.com/ [R=301,L]