View Single Post
  #1406  
Old 09-19-2019, 12:04 PM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 631
 

Default Re: X-Cart - reBOOT - Responsive Template

Thanks Phil and Paul,

I have WP 5.2.3 working and am on PHP 7.3.9. I needed to use the Classic Editor (thx Paul) to successfully publish a BLOG page or post and since I'm using a subdirectory for this store, I had to add the

RewriteBase /xcart/ to my .htaccess file.

I also had turned on 'clean urls' which turned out if it was listed 'first' in the .htaccess file, before the 'reBOOT' updates to .htaccess, I got 404. When I changed the order for the reBOOT lines first, followed by the clean urls, it worked.

I just reran a test on the order, and failed with 404 on blog entry if clean URLs are first, and succeed if reBOOT blog updates first as shown below.

# Wordpress Blog [[[
RewriteEngine On
#RewriteBase /
RewriteBase /xcart/
RewriteRule ^blog/(wp-login\.php|wp-admin|wp-includes|wp-content|wp-comments-post\.php|wp-cron\.php|xmlrpc\.php)(.*)$ blog/$1$2 [QSA,L]
RewriteRule ^blog/(.*).(css|js|gif|jpg|png|html|php)$ reboot_blog.php?incl_file=$1.$2 [QSA,L]
RewriteRule ^blog/.*$ reboot_blog.php?url=$1 [QSA,L]
RewriteRule ^blog$ reboot_blog.php [QSA,L]
# /Wordpress Blog ]]]

# Clean URLs [[[
# Options +FollowSymLinks -MultiViews -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /xcart/
RewriteCond %{REQUEST_URI} !^/xcart/(payment|admin|provider|partner)/
RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|png|js|css|swf|php|ico|svg|tif|avi|m p3|mp4|flv)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ dispatcher.php [L]
</IfModule>
# /Clean URLs ]]]
__________________
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