Re: Ceon URI Mapping (SEO)
Hi,
I had a question about the new ceon url seo.
I upgrade from 1.3.8 (which had ceon installed) to 1.3.9.
1.3.9 still show ceon module in the configuration admin page (since I migrated the database and none of the custom zen module.
Is there a problem installing the new ceon over whatever was in the database?
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
saplanet
Ok, I figured out that my error documents are not redirecting to pagenotfound.php because that it was directed to index.php instead.
For ErrorDocuments there should be never be any "redirect".
The 404 response should be directly returned at the originally requested URL.
A preceding 301 or 302 redirect and/or the ErrorDocument directly returning anything other than 404 status is a configuration error.
http://www.zen-cart.com/forum/showthread.php?t=152608
Re: Ceon URI Mapping (SEO)
This is what my .htaccess shows:
#Error Page
ErrorDocument 404 /index.php?main_page=page_not_found.php
ErrorDocument 403 /index.php?main_page=page_not_found.php
ErrorDocument 400 /index.php?main_page=page_not_found.php
ErrorDocument 401 /index.php?main_page=page_not_found.php
ErrorDocument 405 /index.php?main_page=page_not_found.php
ErrorDocument 500 /index.php?main_page=page_not_found.php
# 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)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
I have a customized error page created, so I want to use that, however, after including CEON's rewrite rules
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L], the customized error page doesn't show anymore, but instead, it is pointing to the homepage.
My new url still doesn't load though, I am not sure if it is something that I have not done properly (checked thrice though), or it's not fully compatible with 1.39.
This is the test product in a test category: http://simpleartsplanet.com/test-cat...-lyndi-pattern
Re: Ceon URI Mapping (SEO)
I will keep this thread in view, but unfortunately, this is not working for me now, so I am uninstalling the module. I can't leave the test cat/prdt in the shop as it is a live shop and customers are already emailing to ask if the cart is still under maintenance or unstable as they see test products around.
Good luck with this mod.
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
saplanet
I will keep this thread in view, but unfortunately, this is not working for me now, so I am uninstalling the module. I can't leave the test cat/prdt in the shop as it is a live shop and customers are already emailing to ask if the cart is still under maintenance or unstable as they see test products around.
Good luck with this mod.
Update has not been released for 1.3.9 yet.
Suppose to be soon though.
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
saplanet
I will keep this thread in view, but unfortunately, this is not working for me now, so I am uninstalling the module.
Sorry you couldn't get the software to work. It sounds like you messed up something when installing or that your server is configured "unusually". I can take a quick look if you send me FTP and admin details for your site.
As neither of the possible causes of the issue are "general" problems, the posting of the solution of which may help others, I'm afraid I can't provide support here on this thread.
All the best...
Conor
ceon
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Yes, after a few personal mails to her I got a response. As I'd thought there was nothing wrong with Ceon URI Mapping, the "Excluded Files" setting hadn't been configured properly to get it to work with the other module.
I have to get in contact with Raine, the author of the other module to let her know how she can configure URI Mapping to have her module work with it.
Cool.. Would you be willing to share the required change needed (for either the other module or the need edits to the "Excluded Files"?? If you don't want to do it here I totally understand.. Could I impose on you (when your time permits of course) to send to me direct?? :smile:
Quote:
Originally Posted by
conor
I've been very ill recently so I haven't got round to that yet.
Hopefully I'll be well enough to release new versions of the various Ceon modules (with 1.3.9 compatibility and PHP 5.3 compatibility) very soon - today or tomorrow (which is about time as some of the changes I've had waiting to release since September 2009! :) ).
It's awful when you are not feeling well.. So in the meantime, please take care of YOU.. We LOVE having you around!!
Re: Ceon URI Mapping (SEO)
Can anyone tell me how to prevent other directories on my site from being rewritten? I have the following .htaccess file in the site root. Directories such as: /lists.* and /blogs.* are no longer functioning.
ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html
RewriteEngine 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 kremer site directories
RewriteCond %{REQUEST_URI} !^/administration.* [NC]
RewriteCond %{REQUEST_URI} !^/banner.* [NC]
RewriteCond %{REQUEST_URI} !^/bible.* [NC]
RewriteCond %{REQUEST_URI} !^/bible-studies.* [NC]
RewriteCond %{REQUEST_URI} !^/biblewalk.* [NC]
RewriteCond %{REQUEST_URI} !^/bread.* [NC]
RewriteCond %{REQUEST_URI} !^/blogs/* [NC]
RewriteCond %{REQUEST_URI} !^/camera.* [NC]
RewriteCond %{REQUEST_URI} !^/cartTests.* [NC]
RewriteCond %{REQUEST_URI} !^/catalog.* [NC]
RewriteCond %{REQUEST_URI} !^/christmas.* [NC]
RewriteCond %{REQUEST_URI} !^/church.* [NC]
RewriteCond %{REQUEST_URI} !^/confirmationparent.* [NC]
RewriteCond %{REQUEST_URI} !^/downloads.* [NC]
RewriteCond %{REQUEST_URI} !^/email.* [NC]
RewriteCond %{REQUEST_URI} !^/EMailings.* [NC]
RewriteCond %{REQUEST_URI} !^/excelLISTS.* [NC]
RewriteCond %{REQUEST_URI} !^/forms.* [NC]
RewriteCond %{REQUEST_URI} !^/fpp.* [NC]
RewriteCond %{REQUEST_URI} !^/GeneratedItems.* [NC]
RewriteCond %{REQUEST_URI} !^/images.* [NC]
RewriteCond %{REQUEST_URI} !^/images_https.* [NC]
RewriteCond %{REQUEST_URI} !^/lists.* [NC]
RewriteCond %{REQUEST_URI} !^/media.* [NC]
RewriteCond %{REQUEST_URI} !^/menu_top.* [NC]
RewriteCond %{REQUEST_URI} !^/menu_top_spring.* [NC]
RewriteCond %{REQUEST_URI} !^/menu_top_summer.* [NC]
RewriteCond %{REQUEST_URI} !^/menu_top_winter.* [NC]
RewriteCond %{REQUEST_URI} !^/myfiles.* [NC]
RewriteCond %{REQUEST_URI} !^/originals.* [NC]
RewriteCond %{REQUEST_URI} !^policies.html [NC]
RewriteCond %{REQUEST_URI} !^/printing.* [NC]
RewriteCond %{REQUEST_URI} !^/school.* [NC]
RewriteCond %{REQUEST_URI} !^/search.* [NC]
RewriteCond %{REQUEST_URI} !^/VBS_Downloads.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite payment pages/callback handlers
# (Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)
RewriteCond %{REQUEST_URI} !^/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !^/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/realex_remote_3d_secure_iframe.php.* [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]
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 payment pages/callback handlers
# (Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)
RewriteCond %{REQUEST_URI} !^/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !^/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/realex_remote_3d_secure_iframe.php.* [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]
Re: Ceon URI Mapping (SEO)
You have two identical RewriteRules.
There is a very long list of RewriteCond URL exclusions before the first one.
The exclusion list before the second RewriteRule is very short.
If something is excluded in the first list, but not in the second list, then the second RewriteRule will handle the request.
You need to merge the list of RewriteConds before having a single RewriteRule.
In every RewriteCond with a trailing .* fragment, those trailing .* characters can be deleted.
Remove the doubled "ErrorDocument" and the "RewriteEngine On" duplication too.
Re: Ceon URI Mapping (SEO)
Hi,
I think it's pretty obvious that you messed that up well and truly! :)
As the following post said, you have mixed two rewrite rules so the one without the exclusions is nullifying the effect of the tone with the exclusions.
Here's the exact code you should use in your .htaccess file.. get rid of EVERYTHING else you've entered and put this code in there:
Code:
ErrorDocument 401 ./error.html
ErrorDocument 403 ./error.html
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin [NC]
# Don't rewrite kremer site directories
RewriteCond %{REQUEST_URI} !^/administration [NC]
RewriteCond %{REQUEST_URI} !^/banner [NC]
RewriteCond %{REQUEST_URI} !^/bible [NC]
RewriteCond %{REQUEST_URI} !^/bible-studies [NC]
RewriteCond %{REQUEST_URI} !^/biblewalk [NC]
RewriteCond %{REQUEST_URI} !^/bread [NC]
RewriteCond %{REQUEST_URI} !^/blogs [NC]
RewriteCond %{REQUEST_URI} !^/camera [NC]
RewriteCond %{REQUEST_URI} !^/cartTests [NC]
RewriteCond %{REQUEST_URI} !^/catalog [NC]
RewriteCond %{REQUEST_URI} !^/christmas [NC]
RewriteCond %{REQUEST_URI} !^/church [NC]
RewriteCond %{REQUEST_URI} !^/confirmationparent [NC]
RewriteCond %{REQUEST_URI} !^/downloads [NC]
RewriteCond %{REQUEST_URI} !^/email [NC]
RewriteCond %{REQUEST_URI} !^/EMailings [NC]
RewriteCond %{REQUEST_URI} !^/excelLISTS [NC]
RewriteCond %{REQUEST_URI} !^/forms [NC]
RewriteCond %{REQUEST_URI} !^/fpp [NC]
RewriteCond %{REQUEST_URI} !^/GeneratedItems [NC]
RewriteCond %{REQUEST_URI} !^/images [NC]
RewriteCond %{REQUEST_URI} !^/images_https [NC]
RewriteCond %{REQUEST_URI} !^/lists [NC]
RewriteCond %{REQUEST_URI} !^/media [NC]
RewriteCond %{REQUEST_URI} !^/menu_top [NC]
RewriteCond %{REQUEST_URI} !^/menu_top_spring [NC]
RewriteCond %{REQUEST_URI} !^/menu_top_summer [NC]
RewriteCond %{REQUEST_URI} !^/menu_top_winter [NC]
RewriteCond %{REQUEST_URI} !^/myfiles [NC]
RewriteCond %{REQUEST_URI} !^/originals [NC]
RewriteCond %{REQUEST_URI} !^policies.html [NC]
RewriteCond %{REQUEST_URI} !^/printing [NC]
RewriteCond %{REQUEST_URI} !^/school [NC]
RewriteCond %{REQUEST_URI} !^/search [NC]
RewriteCond %{REQUEST_URI} !^/VBS_Downloads [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]
All the best..
Conor
ceon