YUP. you nailed it.
Printable View
I've been struggling for the last couple of hours trying to solve my 404 page error after generating a URI Mapping.
I'm using hostgator and ZenCart 1.5.5a, my website is augiespanoras(dot)com I didn't have an .htcaccess file in my root directory so I created one. This is all I have in it:
Code:## 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 admin directory
RewriteCond %{REQUEST_URI} !^/admin_augie [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
# Don't rewrite logs directory
RewriteCond %{REQUEST_URI} !^/logs/ [NC]
# Don't rewrite magicthumb directory
RewriteCond %{REQUEST_URI} !^/magicthumb/ [NC]
# Don't rewrite zc_install_x directory
RewriteCond %{REQUEST_URI} !^/zc_install_x/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
Well ... don't change the name of the zc_install directory, delete it immediately. It should not be on the server under any name at all.
As for changing the name of the admin folder again, yes that is a good idea, but security by obscurity is not security at all.
There should be no way in even if the admin folder name is public. Changing it just reduces the volume of hacking attempts.
I have been trying to install this addon on a clean Zencart install 1.5.5a... for some reason, when I am done, I can't log in to the store side of the site. I can still access admin without any problems. On the store side, I can view everything, add items to my cart but when I try to log in, it won't let me. I removed the addon completely and I could log in again. I figured I might have missed a step and redid everything again... nope still not working and I am not getting an error log on this and the logs folder is writeable. Any thoughts?
I've since found that if I remove the file includes/init_includes/overrides/init_sessions.php, I can once again log in to the store side. However, I get this error when I do the installation check
which is obviously normal... I am still trying to figure it out but this is the third time I've installed this addon on fresh stores and never had this happen. Any input would be greatly appreciatedQuote:
A file must have a modification made to it, to work with Ceon URI Mapping, but the file does not exist at all!
The path to the file is /home/myembro/public_html/test/includes/init_includes/overrides/init_sessions.php
•Add the missing file and make sure you apply the modifications required for Ceon URI Mapping.
This is the bit of code that the addon requires but also makes it so that I can no longer log in...
It is the exact same code that I have on my previous site and it worked fine there but not on this site. The only difference between the 2 sites is that the older one is running on Zencart 1.5.1Code:// BEGIN CEON URI MAPPING 1 of 1
// Static URIs are relative to the site's root, so cookie should be set for the root
$path = '/';
// END CEON URI MAPPING 1 of 1
Sorry don't mean to post this much but trying to supply as much information as possible. Thanks
I also found the same issue when updating the URI mapping files for ZC155 and php7, but only on my local server and not 100% of the time.
I didn't get to the bottom of it, got sidelined by other things.
It's not implemented on a real server yet to be able to take it further.