Web Development Company

We offer custom software and Web development services under our proven offshore model

Tag: htaccess

How to Redirect joomla index.php to root

Posted in: Sunday, January 9th, 2011 | Uncategorized | admin

Google Webmaster tool  show the same duplicate content for http://www.nooglesoft.com/index.php and http://www.nooglesoft.com/.

A common request is to be able to remove or redirect the index.php from appearing in the url. This is possible  with server-side technology like .htaccess configuration files .

Require the www and Redirect index.php to root

Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php</code>

Options +FollowSymLinks
#RewriteEngine on
RewriteCond %{HTTP_HOST} ^nooglesoft\.com$
RewriteRule ^(.*)$ http://www.nooglesoft.com/$1 [R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://www.nooglesoft.com/ [R=301]

RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.nooglesoft.com/ [R=301,L]