Hi Guys,
What a great mod this is...
But the queston I have is we have forums and gallerys also on our server.
This mod works a treat but I have not been able to get therewrite rule working so it exludes the forums
We use http://<URL>/forums and http://<URL>/gallerys
When this mod is active, when you go to the forums or gallerys, we just get a page is not found.
Can anyone give me any pointers?
Regards
Hi Chris,
I'm glad you like it and find it useful for your site.. I'm starting to see a pattern in that.. :)
It appears you haven't read the documentation? You should always take a look at the docs that come with software!
The third entry in the FAQs (Frequently Asked Questions) is:
"The module is blocking access to part of the site (e.g. the site's control panel)!"
which leads to part of the configuration section you should have read:
"Adding exceptions to the rule to prevent particular addresses (e.g. Control Panels etc.) being handled by Zen Cart"
You have to add the following to your htaccess file, before the RewriteRule line:
I have to point out as well that there's no such word as "gallerys".. it's "galleries"! :)Code:# Don't rewrite forums/gallerys directories RewriteCond %{REQUEST_URI} !/^forums.* [NC] RewriteCond %{REQUEST_URI} !/^gallerys.* [NC]
All the best..
Conor
ceon
Wow,
Thanks for the quick reply.....
I do apologise in advance for my stupidity, but should the rewrite rulles look like this?
# 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]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteCond %{REQUEST_URI} !/^forums/.* [NC]
RewriteCond %{REQUEST_URI} !/^gallerys/.* [NC]
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
With the gallerys thing what the customer wants they get :-)
Cheers
Hi,
I made a rather obvious typo there.
The ^ is in the wrong place. It should be:
Once you make that change everything should work fine, your client's .htaccess file is fine.Code:# Don't rewrite forums/gallerys directories RewriteCond %{REQUEST_URI} !^/forums.* [NC] RewriteCond %{REQUEST_URI} !^/gallerys.* [NC]
Just tell them that they'll get no results on google if they spell it wrong and they'll wise up and use "proper" words!
All the best...
Conor
ceon
Hi
Just downloaded an install URI Mapping but seem to be getting a extra /
"www.myshop.co.uk//specials"
any ideas
Hi,
[quote=fita1440;845184Just downloaded an install URI Mapping but seem to be getting a extra /[/quote]
Check your DIR_WS_CATALOG setting in includes/configure.php (it should be a single slash). Otherwise quite simply you must be entering two slashes when adding the URIs manually to the database.
All the best...
Conor
ceon
Bookmarks