301 redirects and index.php for SEO
Permalink
Hi all,
I have just finished developing a site and I am working closely with an external SEO company who have advised me to set up a 301 redirect so the site is accessed only through the pretty urls for examplehttp://www.mydomain.com/about rather thanwww.www.mydomain.com/index.php/about.... Is there a 301 redirect that does this for the whole site? The forums I have found suggest that the redirect has to be done for each page. Being a 50+ page site this will be rather time consuming and not dynamic going forward when any new pages are added? Here is my .htaccess code so far:
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
I have just finished developing a site and I am working closely with an external SEO company who have advised me to set up a 301 redirect so the site is accessed only through the pretty urls for examplehttp://www.mydomain.com/about rather thanwww.www.mydomain.com/index.php/about.... Is there a 301 redirect that does this for the whole site? The forums I have found suggest that the redirect has to be done for each page. Being a 50+ page site this will be rather time consuming and not dynamic going forward when any new pages are added? Here is my .htaccess code so far:
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
http://www.concrete5.org/marketplace/addons/seo-301-redirects/...
They will have to be setup manually though. If you turn on Pretty URLs in the Dashboard, the index.php should be hidden with the exception of when you are logged in.