View Single Post
  #1  
Old 07-16-2012, 10:55 AM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 631
 

Default Moving X-cart to Root and using CDSEOPro

Hi,

I'm trying to move my X-cart to the root directory. I thought I had done everything correctly, but my previous attempt caused me to get '404's from whenever I went to a main category from the root -- which I believe was the result of something not being done to refresh/change my categories / products in CDSEOPro

It took me a while to get my site back working with my shopping cart in a subdirectory off the root -- so before I try again, I want to make sure I'm doing all the necessary steps.

Steps to move Xcart to root

1) backed up DB and Directory first

2) copied all files and dir/subdirectories to root

3) closed shopping cart

4) changed root config.php file to point to new $xcart_web_dir = '';

5) changed root .htaccess to point to

RewriteBase /

6) Regenerated CDSEOPro sitemap after changing the directory to the root from the CDSEOPro Admin screen

7) added CDSEOPro directives to root .htaccess

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


# .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"
#ErrorDocument 404 http://www.mystore.com/home.php

# 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 /

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
# ------------------------------------

7) Regenerated robots.txt file

Cleared all X-cart temp files, cache, etc out of maintenance area from admin

9) Cleared Browser cache

10) test with shop closed

11) open shop

If I'm missing some step, please advise - going to try this process later tonight.

Thanks.
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote