Hi,
In that case I'm afraid I simply don't know what's going wrong, it works fine here.
All the best...
Conor
ceon
Printable View
Hi,
In that case I'm afraid I simply don't know what's going wrong, it works fine here.
All the best...
Conor
ceon
Hi Conor,
Yes, they are supported.
Here is what I have. I commented it all out trying to debug it.
# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
#
# This is used with Apache WebServers
# The following blocks direct HTTP requests in this directory recursively
#
# For this to work, you must include the parameter 'Limit' to the AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Limit
#
# 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)
#
# This does not affect PHP include/require functions
#
# Example: http://server/catalog/includes/application_top.php will not work
# <Files *.php>
# Order Deny,Allow
# Deny from all
# </Files>
# RewriteEngine On
# Don't rewrite mynewsite's directory
# RewriteCond %{REQUEST_URI} !/suncoastjewelers.railsplayground.* [NC]
# Don't rewrite admin directory
# RewriteCond %{REQUEST_URI} !^/Jf7dSh8J3v.* [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]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
# RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# RewriteCond %{REQUEST_URI} \.(html|htm|php)$ [NC]
Can you see what the problem is?
Thanks so much!
Kat
Hi,
You shouldn't have RewriteCond[ition]s after the RewriteRule.
Apart from that I don't know what the problem would be.
All the best...
Conor
ceon
Hi Conor,
OK, how does this look? I've uncommented what I think should be used. I'm not sure about any of the other things there.
# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
# to turn off register_globals
# php_value register_globals 0
RewriteEngine On
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/Jf7dSh8J3v.* [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)
# 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|htm|php)$ [NC]
RewriteRule (.*) /index.php?%{QUERY_STRING} [L]
Thanks,
Kat
Hi Conor,
I tried it and got it to work!!
Just one issue. When I apply it to the EZ pages, it doesn't change in the site.
Example:
http://www.suncoastjewelers.railspla...age=contact_us is still coming up.
Any tips?
Thanks so much,
Kat
Hi,
I'm glad to hear that!
That's not an EZ-Page you sent me a link to but a "define" page.. you can add a mapping for it by manually editing the database using software like PHPMyAdmin.. the instructions for this are int the documentation under "Other Zen Cart Pages".
All the best...
Conor
ceon
Conor,
Well, I'm lost then because these all show up under EZ pages. They show as changed in admin, but the are not in the site.
Contact Us
Discount Coupons
Gift Certificate FAQ
Newsletter Unsubscribe
Ordering Information
Shipping & Returns
Site Map
Privacy Notice
Conditions of Use
This is an example of what is showing in the database. Is this not right?
/site-map 1 1 page NULL 8 NULL 301 2009-11-10
I'm lost now. Can you help?
Thanks,
Kat
Hi,
EZ-Pages use the query string parameter id=XXX and main_page=page
So if you see main_page=contact_us then it is not a link to an EZ-Page you are looking at, which is what is confusing you.
If you are still unsure about this please send me admin details for your site via this link.
All the best..
Conor
ceon
Hi Conor,
I sent it.
Kat
Hi Kat,
As I expected, you are misunderstanding how the URI Mapping works.
You can't just add an EZ-Page and then use an internal link to another Zen Cart page.
You have to manually add records into your database. The instructions for this are in the documentation.
The section you must read and use is
Specifying the current URI Mapping for any other Zen Cart page
(Part 1 applies for you).
For the Contact Us page the "main_page" variable should be set to "contact_us".
You should delete all those EZ-Pages you added as "internal link aliases" to the standard "other" Zen Cart pages (Contact Us, Discount Coupons, Gift Certificate FAQ etc.)
Have a nice weekend!
All the best...
Conor
ceon