I've got a fresh 1.38a+security+CSS drop-down menus store I'm working on. I installed the Ceon URI Mapping mod, along with the changes to my .htaccess file. I don't have any products yet, so I used phpMyAdmin to add a record to get the contact_us page 'renamed' (uri = /contact_us, lang_id = 1, current_uri = 1, main_page = contact_us).
Code:
#
# Request PHP 5.0
#
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
#
# Ensure the correct mime type is sent for the .htc file
#
AddType text/x-component .htc
#
# Add the www if it's missing ...
#
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
#
# Added for Ceon URI Mapping add-on
#
# 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} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
#
# Point 404 errors to the website-specific page
#
ErrorDocument 404 http://www.mydomain.com/index.php?main_page=page_not_found
What's funny is that all accesses to my admin directory *ARE* being rewritten and all my store's accesses result in a 404. Any ideas?
Bookmarks