| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Moving X-cart to Root and using CDSEOPro | |||
|
|
Thread Tools |
#1
|
|||||||||
|
|||||||||
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Moving X-cart to Root and using CDSEOPro
If this information is helpful to any others, I just 'successfully' moved my site to the root directory - on my 2nd attempt.
The above steps worked EXCEPT, I had to have my store 'open' to run the CDSEOPro sitemap generation (at least, that was my experience). Also, Jon already has a tutorial (that I missed before) to do this move. -- thanks Jon http://www.websitecm.com/x-cart-tutorials/moving-x-cart-to-root/ Peggy
__________________
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 |
|||||||||
#3
|
|||||||
|
|||||||
Re: Moving X-cart to Root and using CDSEOPro
It's old thread.
But just wanted to post quick update. If you are moving your store to root directory & you see following error PHP Code:
then recreate the /var/cache and var/templates_c folders Thanks to Phil for the solution.
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
|
Thread Tools | |
|
|
|
|||
X-Cart forums © 2001-2020
|