I'm having issues with 2 of my 3 domains not working now that I installed CEON. I've narrowed it down to the htaccess file.
My hosting file structure is set up as:
/maindomain (zen files under this location)
/maindomain/_aa_domain_2 (2nd hosted website files)
/maindomain/_bb_domain_3 (3rd hosted website files)
My htaccess is:
Code:
ErrorDocument 404 /404.shtml
RewriteCond %{HTTP_HOST} ^www\.maindomain\.com$
RewriteRule ^/?$ "http\:\/\/maindomain\.com\/" [R=301,L]
## BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
# which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
# which are not covered by main file extension condition above
# Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite _aa_domain_2 directory
RewriteCond %{REQUEST_URI} !^/_aa_domain_2/ [NC]
# Don't rewrite _bb_domain_3 directory
RewriteCond %{REQUEST_URI} !^/_bb_domain_3/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
As it is above, the main domain works but the 2 other domains return:
Not Found
The requested URL /maindomain/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
If I comment out the last line, the other 2 domains work but it crashes the main domain:
#RewriteRule .* index.php [QSA,L]
I'm hoping someone can offer some assistance on the proper code to use to prevent this issue.
Regards
Bookmarks