Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Moving X-cart to Root and using CDSEOPro
 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 07-16-2012, 10:55 AM
 
peggyr peggyr is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 268
 

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.
__________________
HPAdmin

4.6.6 Classic - Dec 2014
Smack Digital CDSEO Pro 2.0
Smack Digital ezUpsell
Smack Digital Rich Snippets for X-cart
Smack Digital Duplicate Meta Data
BCSE Mobile App
X-Cartmods UK Recaptcha Nov 2017 update
www.shipmyorders.com NV and TN Fulfillment Centers
Reply With Quote
  #2  
Old 07-16-2012, 04:30 PM
 
peggyr peggyr is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 268
 

Default 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-tuto...-cart-to-root/

Peggy
__________________
HPAdmin

4.6.6 Classic - Dec 2014
Smack Digital CDSEO Pro 2.0
Smack Digital ezUpsell
Smack Digital Rich Snippets for X-cart
Smack Digital Duplicate Meta Data
BCSE Mobile App
X-Cartmods UK Recaptcha Nov 2017 update
www.shipmyorders.com NV and TN Fulfillment Centers
Reply With Quote
  #3  
Old 07-04-2017, 11:34 PM
 
anandat anandat is online now
 

X-Adept
  
Join Date: Jan 2004
Posts: 909
 

Default 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:
"Cannot write data to the temporary directory "
"Please check if it exists, and has writable permissions." 

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
----------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:20 AM.

   

 
X-Cart forums © 2001-2018