I changed the // to /, and still get the 404 Not Found.
Here is what it generated in my test server:
http://www.suncoastjewelers.railspla...ld/product-041
Kat
I changed the // to /, and still get the 404 Not Found.
Here is what it generated in my test server:
http://www.suncoastjewelers.railspla...ld/product-041
Kat
Hi Kat,
Either your .htaccess file isn't actually being loaded or there is a problem with your rewrite rule.
Check with your host if htaccess files are supported on your site!
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