Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping (SEO)

Ceon URI Mapping (SEO)

Locked

Views: 472,304

Results 2,141 to 2,160 of 2,913
This thread is locked. New replies are disabled.
17 Nov 2010, 9:12 PM
#2141
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Ceon URI Mapping (SEO)

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.

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]

17 Nov 2010, 10:01 PM
#2142
jeniferous avatar

jeniferous

New Zenner

Join Date:
Oct 2010
Posts:
46
Plugin Contributions:
0

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:

18 Nov 2010, 12:44 AM
#2143
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping (SEO)

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:

18 Nov 2010, 12:48 AM
#2144
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping (SEO)

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.

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]

18 Nov 2010, 5:56 AM
#2145
shirleyujest avatar

shirleyujest

New Zenner

Join Date:
Sep 2008
Location:
Central Coast of California
Posts:
22
Plugin Contributions:
0

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

18 Nov 2010, 7:35 AM
#2146
shirleyujest avatar

shirleyujest

New Zenner

Join Date:
Sep 2008
Location:
Central Coast of California
Posts:
22
Plugin Contributions:
0

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
https://www.rondajane.com

18 Nov 2010, 7:51 AM
#2147
shirleyujest avatar

shirleyujest

New Zenner

Join Date:
Sep 2008
Location:
Central Coast of California
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Okay - not as victorious as I had thought. It looks great in Firefox but in IE the template is not kicking in. Anyone know where to look?

This is what my .htaccess looks like:

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

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]

Thanks.
Ronda
https://www.rondajane.com

18 Nov 2010, 8:48 PM
#2148
shirleyujest avatar

shirleyujest

New Zenner

Join Date:
Sep 2008
Location:
Central Coast of California
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

It was a template issue. Resolved by reloading the template files.

Wishing you all much luck. This is a great module! :clap:

Ronda
https://www.rondajane.com

18 Nov 2010, 9:52 PM
#2149
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Ceon URI Mapping (SEO)

I never figured on an htaccess problem but here it is. This is the first time I've not had a cart in the root and I have never had a problem with this before.

Here is the folder htaccess:

RewriteEngine On

# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/store/ [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} !^/store/admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/store/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]

The root also has an htaccess file and besides the 301 redirects, it reads (with xxxx subbing for domain name):

RewriteEngine on

RewriteCond %{HTTP_HOST} ^([^.:]+\.)*xxxx\.net\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^([^.:]+\.)*engis\.org\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^xxxx.com
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

Anybody see a problem with this? I can't even get into the store directory with this htaccess setup

19 Nov 2010, 12:58 AM
#2150
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping (SEO)

delia:

I never figured on an htaccess problem but here it is. This is the first time I've not had a cart in the root and I have never had a problem with this before.

Here is the folder htaccess:

RewriteEngine On

ONLY rewrite URIs beginning with /shop/

RewriteCond %{REQUEST_URI} ^/store/ [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} !^/store/admin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/store/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]

> ```
RewriteEngine on

RewriteCond %{HTTP_HOST} ^([^.:]+\.)*xxxx\.net\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^([^.:]+\.)*engis\.org\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^xxxx.com
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]
```Anybody see a problem with this?  I can't even get into the store directory with this htaccess setup

Hi you need to create a htaccess, and it must be in the file placed in the same directory as the Zen Cart installation's
index.php file.
For example wherever your zencart files are  put the .htaccess file there.

admin
cache
docs
download
editors

Remove the one in your root, and you should be OK if your .htaccess file is something like this. Back this one up before removing it just in case.

> 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]
> 
> RewriteEngine On
> 
> # ONLY rewrite URIs beginning with /shop/
> RewriteCond %{REQUEST_URI} ^/store/ [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} !^/store/admin [NC]
> # Don't rewrite editors directory
> RewriteCond %{REQUEST_URI} !^/store/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]
19 Nov 2010, 8:00 PM
#2151
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Ceon URI Mapping (SEO)

I can't remove the one in root permanently but I did try it as a test and the directory is still not accessible so the problem has nothing to do with the other file.

As I have done this before I know where to put the redirect url for the cart. That's not the problem.

I'm using the redirect as written by Conor - checked it three times so far so it should be right.

Anybody else got a guess why this isn't working?

22 Nov 2010, 4:44 PM
#2152
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Has any one got this working with Amazon Checkout?

If I turn URI mapping off it works great, turn it on you can complete the order but fails when amazon tries to return to your site.

Keith

22 Nov 2010, 9:25 PM
#2153
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping (SEO)

Mustang394:

Has any one got this working with Amazon Checkout?

If I turn URI mapping off it works great, turn it on you can complete the order but fails when amazon tries to return to your site.

KeithWithout knowing how the Amazon module works is it possible that it is returning you to a URL that is no longer valid (with the implementation of this module). Is it possible to update that URL to one that works with this add-on??

If this is not possible, there are really good instructions in the Ceon URI Mapping module readme for how to add modules that cannot work with this one to the "exclusions" list.

22 Nov 2010, 9:27 PM
#2154
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi Keith,

Mustang394:

Has any one got this working with Amazon Checkout?

If I turn URI mapping off it works great, turn it on you can complete the order but fails when amazon tries to return to your site.

The Amazon Checkout module must load in the Zen Cart system to respond to a callback.

Read the section in the docs "Ensuring 100% Compatibility with Third Party Zen Cart Modules - Specifying Individual Files to be Excluded from URI Mapping". You just need to add the path to the callback file to the list of excluded files.

All the best..

Conor
ceon

22 Nov 2010, 9:36 PM
#2155
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi Delia,

delia:

Anybody else got a guess why this isn't working?

Can't really tell, it all looks fine. I think this is one of those things that would require online debugging/testing.

If you want I can have a quick look/test. Just send me FTP details for the site (and admin details if the software is disabled temporarily).

All the best...

Conor
ceon

22 Nov 2010, 11:01 PM
#2156
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi Keith,

The Amazon Checkout module must load in the Zen Cart system to respond to a callback.

Read the section in the docs "Ensuring 100% Compatibility with Third Party Zen Cart Modules - Specifying Individual Files to be Excluded from URI Mapping". You just need to add the path to the callback file to the list of excluded files.

All the best..

Conor
ceon

Ahh thats the problem I can't seem to figure out what file it is calling

23 Nov 2010, 6:14 PM
#2157
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

Mustang394:

Ahh thats the problem I can't seem to figure out what file it is calling

Well, as the docs say: "Check all the files in the root directory of the Zen Cart installation, and any files installed by any other third party modules, to see if they contain a line that loads in application_top.php - the require command will mostly likely be near the top of the file."

In under 20 seconds I was able to download the Check by Amazon Zen Cart plugin, unzip it and search the module's files.

The file path you need to add to the list of excluded files is:

/checkout_by_amazon.php

Wasn't very hard! ;p

(If your store is in a folder put the store's folder name before the above: /store/checkout_by_amazon.php ).

All the best..

Conor
ceon

23 Nov 2010, 6:29 PM
#2158
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I must be missing something else then because I did that, and still get page not found error when returning from Amazon, I the bright side orders still go thru just fine.

The reason I was looking for help as I already added that file as per the docs and it did not help. Added alot of other just in case still no joy.

Harder than it appears :)

23 Nov 2010, 6:55 PM
#2159
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

Mustang394:

I must be missing something else then because I did that, and still get page not found error when returning from Amazon, I the bright side orders still go thru just fine.

Harder than it appears :)

It shouldn't be hard. Something else may be going wrong then.

I'm afraid without looking at the site/server itself I can't say anymore.

What you should check for is to check your webserver's (domain's) access log to see what files are being called. maybe the path isn't what we are expecting?

If you want me to take a quick look simply send me some FTP details for your site.

All the best..

Conor
ceon

23 Nov 2010, 7:14 PM
#2160
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Giving it a specific page to return has fixed the problem somewhat but the pop up with the order ID does not display.

Thanks for the help Conor you gave me some new ideas to look at.