I don't quite understand what you mean. When I turn on the .htaccess file all I get on the entire site (except admin) is a 500 error.
Printable View
I don't quite understand what you mean. When I turn on the .htaccess file all I get on the entire site (except admin) is a 500 error.
Sorry, but my information about the .htaccess file had nothing to do with your error. :no:
It was a followup to a problem I'd posted earlier in the thread about products not being added to the shopping cart when they had an updated URL using this module.
I have many existing eZpages (prior to using Ceon mod) that need a URI generating for. There's nearly 500 so going into each one to have it automatically generated isn't an effective option.
Is there a way to simulate this, perhaps with SQL?
Great mod by the way!
Any help will be appreciated
Hi Jesse,
The rewrite rule you have posted is from an old version of the module. Please download and install the latest version.
The rule you probably want is:
RewriteEngine On
# ONLY rewrite URIs beginning with /zencart/
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zencart/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencart/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
All the best...
Conor
ceon
Dear Ceon,
Thanks for your plugin! I am a green hand. My .htaccess conten is:
Code:RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} \.(html)$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
and my zen cart study site:
http://shop.cheapglasses123.com
I have some problems with the following urls:
help please!Code:more pages
http://shop.cheapglasses123.com/plastic-or-acetate-glasses?&sort=20a&page=2
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/index2.html
how to add .html
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0084-plastic-glasses
contact us
http://shop.cheapglasses123.com/index.php?main_page=contact_us
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/reviews?&page=2
add this to my cart
http://shop.cheapglasses123.com/index.php?main_page=shopping_cart&page=2&products_id=5
product details
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses?page=2
read the review
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/review?&reviews_id=2
write a review
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/add-a-review?page=2
More Information
http://shop.cheapglasses123.com/index.php?main_page=page_2
Many thanks.
Dear Conor,
Thanks for your plugin
i want to rewrite url
www.domain.com/index.php?main_page=login
to
www.domain.com/login
but i can't find where to this?
can somebody help me???
Hi,
Most of the URIs you posted are working fine. The extra things like &reviews_id are necessary otherwise Zen Cart doesn't know what review to show.
As for adding .html.. why would you want to? Time Berners-Lee recommends you don't!
If you do, then you must manually add .html to the end of each of your URIs, it isn't added when you auto-generate a URI.
Glad you like the module!
All the best...
Conor
ceon
Hi,
Please read the instructions!
The first part of the configuration section entitled "Specifying the current URI Mapping for any other Zen Cart page" is what you want.. obviously "main_page" for you should be "index".
Glad you like the software!
All the best...
Conor
ceon
Dear Conor,
Would you please tell more details on how to do please?
One more thing, after I install the MOD of EZ-Pages Meta Tag Fields, your MOD does now work for EZ-Pages.
When I reinstall your MOD, then the MOD of EZ-Pages Meta Tag Fields does not work again.