Re: Ceon URI Mapping (SEO)
I tried this as per your suggestions, obviously with my URL-
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/shop/ [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/shop/admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/shop/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 got a 500 error.
The re-direct works using :
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 admin directory
RewriteCond %{REQUEST_URI} !^/zc_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)
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^jambaroo.co.uk$ [NC]
RewriteRule (.*) http://www.jambaroo.co.uk/$1 [R=301,L]
BUT the links die when i turn on the ceon mapping.
Re: Ceon URI Mapping (SEO)
Also - if i change to your code (amending the /shop bits to suit) then my redirected http://jambaroo.co.uk doesn't seem to link the style sheet....
And i can't log on to admin... it loads the page but doesnt' seem to accept the username/password combination.
Re: Ceon URI Mapping (SEO)
Hi All,
I am using CEON URL Mapping in my zencart website. while using the XENU(link testing tool) all the .html link are reported has 404 'Page Not Found'. But the page works fine in the browsers. Its only in xenu its giving the "page not Found" error. I suspect that there is mistake in my Rewrite script. Can you please help me on this rewrite script.
Here is my rewrite script added in the .htacess file
##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.us-immigration\.com [NC]
#RewriteCond %{HTTP_HOST} !^$
#RewriteRule ^(.*) http://www.us-immigration.com/$1 [L,R]
RewriteCond %{HTTP_HOST} ^us-immigration\.com$ [NC]
RewriteRule ^(.*)$ http://www.us-immigration.com/$1 [R=301]
# SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-n-(.*).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
#RewriteRule ^catalog/(.*)$ index\.php?main_page=product_info&products_id=118&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pji-(.*).html$ index\.php?main_page=document_product_info&products_id=$2&%{QUERY_STRING} [L]
# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html$ /index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
# For dreamscape's News & Articles Manager
RewriteRule ^rss.xml$ /index\.php?main_page=news_rss&%{QUERY_STRING} [L]
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ /index.php?main_page=$1&%{QUERY_STRING} [L]
Please help me..
Thanks in advance
-Immanuel Victor
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
Jeniferous
I tried this as per your suggestions, obviously with my URL-
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/shop/ [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/shop/admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/shop/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 got a 500 error.
The re-direct works using :
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 admin directory
RewriteCond %{REQUEST_URI} !^/zc_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)
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^jambaroo.co.uk$ [NC]
RewriteRule (.*) http://www.jambaroo.co.uk/$1 [R=301,L]
BUT the links die when i turn on the ceon mapping.
Try this here in your .htaccess file. Do not put the www on this one RewriteCond %{HTTP_HOST} ^example.com$ [NC]
Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^
example.com$ [NC]
RewriteCond %{REQUEST_URI} !^/ADMINFOLDERNAME [NC]
RewriteCond %{REQUEST_URI} !^/editors [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/ADMINFOLDERNAME [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]
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
immanuelvictor
Hi All,
I am using CEON URL Mapping in my zencart website. while using the XENU(link testing tool) all the .html link are reported has 404 'Page Not Found'. But the page works fine in the browsers. Its only in xenu its giving the "page not Found" error. I suspect that there is mistake in my Rewrite script. Can you please help me on this rewrite script.
Here is my rewrite script added in the .htacess file
##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.us-immigration\.com [NC]
#RewriteCond %{HTTP_HOST} !^$
#RewriteRule ^(.*) http://www.us-immigration.com/$1 [L,R]
RewriteCond %{HTTP_HOST} ^us-immigration\.com$ [NC]
RewriteRule ^(.*)$ http://www.us-immigration.com/$1 [R=301]
# SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-n-(.*).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
#RewriteRule ^catalog/(.*)$ index\.php?main_page=product_info&products_id=118&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pji-(.*).html$ index\.php?main_page=document_product_info&products_id=$2&%{QUERY_STRING} [L]
# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html$ /index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
# For dreamscape's News & Articles Manager
RewriteRule ^rss.xml$ /index\.php?main_page=news_rss&%{QUERY_STRING} [L]
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ /index.php?main_page=$1&%{QUERY_STRING} [L]
Please help me..
Thanks in advance
-Immanuel Victor
Hi number one you need to get rid of all this in your .htaccess file. You can not run another seo url module with this one.
Number two you need to create your .htaccess file like the example one I mention above.
Quote:
# SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-n-(.*).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
#RewriteRule ^catalog/(.*)$ index\.php?main_page=product_info&products_id=118&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pji-(.*).html$ index\.php?main_page=document_product_info&products_id=$2&%{QUERY_STRING} [L]
Re: Ceon URI Mapping (SEO)
You are a complete superstar! Works a dream.... i've been struggling with this one for days so i really am grateful!
Thanks!:clap:
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
Jeniferous
You are a complete superstar! Works a dream.... i've been struggling with this one for days so i really am grateful!
Thanks!:clap:
No problem, glad you got it sorted out.:bigups:
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
rachitm
again I changed my htaccess files but no result i donot what problem is exactly
Clear you .htaccess file and add this making sure you fill in the information to your site.
Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^
example.com$ [NC]
RewriteCond %{REQUEST_URI} !^/ADMINFOLDERNAME [NC]
RewriteCond %{REQUEST_URI} !^/editors [NC]
RewriteRule ^(.*)$
http://www.example.com/$1 [R=301,L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/ADMINFOLDERNAME [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]
Re: Ceon URI Mapping (SEO)
Country Charm - Thank you for all your help. It is really appreciated. I did what you said and reloaded all the files. Third time is a charm I guess. I am not stuck on the .htaccess file. I created a file with the following:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^rondajane.com$ [NC]
RewriteCond %{REQUEST_URI} !^/myadmin [NC]
RewriteCond %{REQUEST_URI} !^/editors [NC]
RewriteRule ^(.*)$ http://www.rondajane.com/$1 [R=301,L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/myadmin [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]
Like I said before though, I cannot see what is in my current .htaccess file since it doesn't show up in my list of files on my cpanel file manager list. I am a little leary to just delete it not knowing what is there and replace it with the above. It that what you are suggesting? Just thought I'd check before pushing the old "delete" button.
Thanks.
Ronda Robb
Re: Ceon URI Mapping (SEO)
Got it! I was able to edit the .htaccess file right in the ftp client. Didn't know I could do that. So cool. It is now working.
This is a great module. Love it!
Thank you everyone that helped.
Now on to adding product.
Ronda
www.rondajane.com