Miscellaneous ⇒ Search Engines ⇒ LEO - index.php pagerank & SERPs - 301 Re-Direct? ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexSearch Engines

LEO - index.php pagerank & SERPs - 301 Re-Direct? Reply to topic


Hello,

I was wondering is someone can clarify for me how I set a permanent 301 re-direct from my index.php to my index.html file.

I do not want my serp or pagerank diluted and classed as dupe content from google.

You can see the issue here:

index.php

PR3

index.html

PR0

So I know these are being classed as 2 seperate pages.

I have been penalised in google and am really trying to ensure that the ship is perfect order, I have a lot to do!

I revamped the whole site back in April and have disappeared from #10 on my main keywords results since. Traffic has dropped from around 30,000 google hits a day to around 50!! Things are bad so I'm on a major clean up. Sad

Any help would be so appreciated, thanks all in advance.

Need a new 3D Desktop wallpaper? 3D Wallpapers UK - Original 3D Digital Wallpapers

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Windows 2003 Server / Apache / MySQL 5.0.41 / PHP Version 4.4.7 / CMS Version 9.1.2.1


Here is a message I have received, any help would be really helpful - thanks

Default Page Check: FAILED
You have not standardized your default pages meaning the following versions of your url return a 200/OK Header, which may cause duplicate content issues. The following extensions work:
www.3ddesktops.co.uk/index.html
www.3ddesktops.co.uk/index.php
www.3ddesktops.co.uk/

Need a new 3D Desktop wallpaper? 3D Wallpapers UK - Original 3D Digital Wallpapers

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Windows 2003 Server / Apache / MySQL 5.0.41 / PHP Version 4.4.7 / CMS Version 9.1.2.1


<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{THE_REQUEST} ^GET\ /(|index\.php) HTTP/ RewriteRule ^.*$ http://www.3ddesktops.co.uk/index.html [L,R=301] </IfModule>

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Thanks for the reply nano, however when I placed that in my .htaccess it returns a server error;

Original .htaccess file

# if you use LEO, mod_rewrite is necessary <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^3ddesktops.co.uk RewriteRule (.*) http://www.3ddesktops.co.uk/$1 [R=301,L] # Check for Santy Worms and redirect them to a fail page #------------------------------------------------------------------- # Variant -1 # uncomment if you dont use LWP # RewriteCond %{HTTP_USER_AGENT} ^LWP [NC,OR] # Variant -2 RewriteCond %{REQUEST_URI} ^visualcoders [NC,OR] # Variant -3 RewriteCond %{QUERY_STRING} rush=([^&]+) [NC,OR] # Variant -4 RewriteCond %{HTTP:x-moz} ^prefetch [NC,OR] RewriteCond %{X-moz} ^prefetch [NC,OR] # block local file, sql and remote attacks RewriteCond %{QUERY_STRING} =../ [NC,OR] RewriteCond %{QUERY_STRING} "%20UNION" [NC,OR] RewriteCond %{QUERY_STRING} =http:// [NC] # deny them RewriteRule ^.*$ - [F] #------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)$ - [L] # if you use LEO and CPG-Nuke is installed in a sub-directory like '/html', # remove that # before RewriteBase and rename /html to the path of the sub-directory # RewriteBase /html RewriteRule ^index\.html /index.php RewriteRule ^([a-zA-Z0-9_=+-]+)(/|\.html)$ index=$1 [L,S=5] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)(/|\.html)$ index=$1&file=$2 [L,S=4] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index=$1&file=$2 [L,S=3] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=$2&$3 [L,S=1] RewriteRule ^([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=index&$2 [L] RewriteRule ^index=(.*[^/])/(.*) index=$1&$2 [N,L] RewriteRule ^index=(.*) index.php?name=$1 [L] </IfModule>

I have tried adding the code like this;
# if you use LEO, mod_rewrite is necessary <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^3ddesktops.co.uk RewriteRule (.*) http://www.3ddesktops.co.uk/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^GET\ /(|index\.php) HTTP/ RewriteRule ^.*$ http://www.3ddesktops.co.uk/index.html [L,R=301] # Check for Santy Worms and redirect them to a fail page #------------------------------------------------------------------- # Variant -1

Is this because I already have a rule in place? I need to redirect my non www address as I have been told google is classing my non www url as duplicate content.

Thanks so much for your time, I am really out of my depth here. Any help is really appreciated. Google has penalised my site and I need to ensure all is as it should be. Thanks

Need a new 3D Desktop wallpaper? 3D Wallpapers UK - Original 3D Digital Wallpapers

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Windows 2003 Server / Apache / MySQL 5.0.41 / PHP Version 4.4.7 / CMS Version 9.1.2.1


RewriteCond %{THE_REQUEST} ^GET\ /\ HTTP/ [OR] RewriteCond %{THE_REQUEST} ^GET\ /index\.php\ HTTP/ RewriteRule ^.*$ http://www.3ddesktops.co.uk/index.html [L,R=301]

This time I've tested Embarassed

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Superb, thanks so much nano, always so helpful, works just fine - you're a star *****

Need a new 3D Desktop wallpaper? 3D Wallpapers UK - Original 3D Digital Wallpapers

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Windows 2003 Server / Apache / MySQL 5.0.41 / PHP Version 4.4.7 / CMS Version 9.1.2.1

All times are UTC


Jump to: