Web Development Company

We offer custom software and Web development services under our proven offshore model
How to Redirect joomla index.php to root

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]

Comments

1 Comments

  1. joomla web design

    As i m fresher with joomla in my company.Thanks for this post.

    Comment by joomla web design on February 7, 2011


    1. What is 2 + 5 ?
      Please leave these two fields as-is:
      IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)