Knowledgebase
How can I redirect DSEFU urls to CDSEO Pro urls?
Posted by Nick Poindexter on 04 March 2010 04:27 PM

These steps will allow you to 301 redirect your DSEFU urls to CDSEO Pro urls to transfer SEO ranking and prevent broken links.

1. Log into your CDSEO Pro administration and ensure "Redirect Dynamic PHP Urls" is enabled.

2. Locate your current DSEFU .htaccess code. It will typically look similar to:

RewriteRule ^(.*)-c-([0-9]*)-p-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ home.php?cat=$2&page=$3&sort=$4&sort_direction=$5 [L]
RewriteRule ^(.*)-c-([0-9]*)-p-([0-9]*).html$ home.php?cat=$2&page=$3 [L]
RewriteRule ^(.*)-c-([0-9]*).html$ home.php?cat=$2 [L]
RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3&sort=$4&sort_direction=$5 [L]
RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3 [L]
RewriteRule ^(.*)-mid-([0-9]*).html$ manufacturers.php?manufacturerid=$2 [L]
RewriteRule ^(.*)-pr-([0-9]*).html$ product.php?productid=$2 [L]
RewriteRule ^(.*)-p-([0-9]*).html$ pages.php?pageid=$2 [L]

3. In your CDSEO .htaccess code find:

# Enable mod rewrite engine
RewriteEngine On

After add your DSEFU code from step 2 above.

4. Your new cdseo .htaccess code will look similar to:

# ------------------------------------
# CDSEO Pro
# ------------------------------------
# This directory index is recommended to replace the
# x-cart default within this .htaccess file
DirectoryIndex home.php index.html index.php

# Enable mod rewrite engine
RewriteEngine On

# DSEFU 301 Redirects
RewriteRule ^(.*)-c-([0-9]*)-p-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ home.php?cat=$2&page=$3&sort=$4&sort_direction=$5 [L]
RewriteRule ^(.*)-c-([0-9]*)-p-([0-9]*).html$ home.php?cat=$2&page=$3 [L]
RewriteRule ^(.*)-c-([0-9]*).html$ home.php?cat=$2 [L]
RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3&sort=$4&sort_direction=$5 [L]
RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3 [L]
RewriteRule ^(.*)-mid-([0-9]*).html$ manufacturers.php?manufacturerid=$2 [L]
RewriteRule ^(.*)-pr-([0-9]*).html$ product.php?productid=$2 [L]
RewriteRule ^(.*)-p-([0-9]*).html$ pages.php?pageid=$2 [L]

# .htpasswd protection
# May be required if your htpasswd files are located below document root (i.e. cpanel)
# Remove # at the beginning of this line if your unable to access password protected folders:
ErrorDocument 401 "Unauthorized"

# Some servers require this Options directive to be disabled
# Remove # at the beginning of this line to disable:
#Options -Multiviews

# Some servers require the Rewritebase directive to be enabled
# Remove # at the beginning of this line to enable:
#RewriteBase /xcart/

RewriteCond %{REQUEST_URI} !^/(payment|admin|provider|partner)/
RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ cdseopro.php
# ------------------------------------
# / CDSEO Pro
# ------------------------------------


Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: