Re: Ultimate SEO 2.200+ (new features)
You can read more about the different defines in Zen Cart's configure.php. DIR_WS_CATALOG is the "folder" or "directory" where you installed Zen Cart relative to the Web Server's document root (or in other words what shows up following the domain name in your web browser's address bar). Note DIR_WS_CATALOG should start and end with a slash (/).
So if you have define('DIR_WS_CATALOG', '/'), then use either use: "RewriteBase /" or "#RewriteBase /".
If you have define('DIR_WS_CATALOG', '/shop/'), then use: "RewriteBase /shop/".
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lhungil
That path does not look right. It should be the relative Web Site path... (matches DIR_WS_CATALOG in configure.php).
It appears your DIR_WS_CATALOG is "/". If this is the case you can comment out the RewriteBase directive. Otherwise replace the "/" with the value configured inside your configure.php for DIR_WS_CATALOG.
Code:
...
###############################################################################
# Common directives
###############################################################################
# NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine on
#RewriteBase /shop/
###############################################################################
# Start Ultimate SEO URLs
###############################################################################
...
Thank you lhungl. You are a live saver again. A thousand Thank You's! :clap:
I replaced the "overwritebase" with "/" and it works.
Replacing it with "RewriteBase /pub/" didn't work.
Commenting it out did not work either.
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lhungil
You can read more about the different defines in
Zen Cat's configure.php.
DIR_WS_CATALOG is the "folder" or "directory" where you installed Zen Cart relative to the Web Server's document root (or in other words what shows up following the domain name in your web browser's address bar). Note
DIR_WS_CATALOG should start and end with a slash (/).
So if you have define('DIR_WS_CATALOG', '/'), then use either use: "RewriteBase /" or "#RewriteBase /".
If you have define('DIR_WS_CATALOG', '/shop/'), then use: "RewriteBase /shop/".
Strange thing is that it show ('DIR_WS_CATALOG', '/pub/'), (given if I was looking at the correct line in the file.
Replacing it with just "/" did it. Replacing it with /pub/ did not.
Thanks again
Re: Ultimate SEO 2.200+ (new features)
Glad you were able to get everything working! Thank you for taking the time to reply and confirm the issue was due to a misconfiguration of the ".htaccess" file and not an issue with Ultimate (SEO) URLs.
Note: you previously said "define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');".
"define('DIR_WS_DOWNLOAD_PUBLIC',...);" and "define('DIR_WS_CATALOG',...);" are not the same.
Re: Ultimate SEO 2.200+ (new features)
I'm having a problem where the file used for the Recover Cart Sales module, in the root folder, is getting a 301 redirect to index.php. How do I stop this module from rewriting that file?
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
jeking
I'm having a problem where the file used for the Recover Cart Sales module, in the root folder, is getting a 301 redirect to index.php. How do I stop this module from rewriting that file?
Some important things to understand about this plugin.
- Ultimate (SEO) URLs will not modify the generated URL or respond to requests for any files or directories which physically exist.
- Ultimate (SEO) URLs does not modify the generated URLs for the Zen Cart "admin".
- Ultimate (SEO) URLs will only modify the generated URL on the "customer facing" for the specific pages entered in the configuration for "Enter pages to allow rewrite".
The Recover Cart Sales module only makes modifications (and adds files) to the "admin" side of Zen Cart. So if you are seeing any 301 redirect... This is unrelated to the current version of Ultimate (SEO) URLs.
Some places you can look: Review your installation of the "Recover Cart Sales" module. Make sure you have the latest version of "Ultimate (SEO) URLs" installed. Review any modifications made to core Zen Cart files. Review any custom redirects added to the .htaccess file in the web server's document root, the ZenCart installation folder, and the Zen Cart admin folder. Review any Zen Cart debug logs and your web server error logs.
Re: Ultimate SEO 2.200+ (new features)
How to change apache rewrite to nginx rewrite?
My serverinfo: debian6+nginx+mysql+php
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
zch0071
How to change apache rewrite to nginx rewrite?
My serverinfo: debian6+nginx+mysql+php
First change the appropriate line(s) in the sample .htaccess file (especially the RewriteBase). You can then try the tool over at Winginx to convert your .htaccess to the nginix format. No guarantee, but it should give you a good starting point.
Re: Ultimate SEO 2.200+ (new features)
Thanks for the replies. I'm not familiar with nginx. What is the reason for that instead of a regular htaccess file?
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
jeking
Thanks for the replies. I'm not familiar with nginx. What is the reason for that instead of a regular htaccess file?
It is just different web server software (and uses different files). Most hosting providers run Apache or IIS (both can accept or import .htaccess files). A handful run other web server software such as nginx for various reasons :)