Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping v4.x

Ceon URI Mapping v4.x

Views: 452,140

Results 961 to 980 of 2,454
10 Jan 2013, 4:42 PM
#961
divavocals avatar

divavocals

Totally Zenned

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

Ceon URI Mapping v4.x

marvin:

Hey Diva Vocals or anyone can you help, please, with my above posted problem???
Thanks

If I had to guess, I'd say that you need to look at your .htaccess file.. Not my area of expertise or I would have weighed in.. Sorry.. I'd say start with removing anything you've added to the file that the add-on generated.

10 Jan 2013, 5:23 PM
#962
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

marvin:

Hey Diva Vocals or anyone can you help, please, with my above posted problem???
Thanks
Based upon the fact the returned 404 page appears to be the default Apache 404 page and not Zen Cart's 404 page, it appears you may have placed the CEON generated ".htaccess" code into the wrong ".htaccess" file. If the ".htacess" file was in the root Zen Cart installation folder most requests (including for the URI you posted) would be sent to Zen Cart and Zen Cart's 404 page would be displayed.

The top of that ".htaccess" file looks like the one in the "images" sub folder. If you accidentally merged the contents with the ".htaccess" file in the "images" sub folder you will want to undo the changes.

Are you sure you added the rules to the ".htaccess" file in the root Zen Cart installation folder?

10 Jan 2013, 5:46 PM
#963
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 v4.x

lhungil:

Based upon the fact the returned 404 page appears to be the default Apache 404 page and not Zen Cart's 404 page, it appears you may have placed the CEON generated ".htaccess" code into the wrong ".htaccess" file. If the ".htacess" file was in the root Zen Cart installation folder most requests (including for the URI you posted) would be sent to Zen Cart and Zen Cart's 404 page would be displayed.

The top of that ".htaccess" file looks like the one in the "images" sub folder. If you accidentally merged the contents with the ".htaccess" file in the "images" sub folder you will want to undo the changes.

Are you sure you added the rules to the ".htaccess" file in the root Zen Cart installation folder?

nods in agreement

Good catch!! I didn't notice that when I looked the .htaccess file marvin posted.. I have to admit I have a tendency to "skim" posts when folks post a WHOLE file versus the trouble section of a file :smile:. Re-Reading marvin's original post it looks like he didn't follow the Ceon install instructions correctly and placed the .htaccess rules this add-on generates into the wrong .htaccess file.. This would indeed cause 404 errors..

10 Jan 2013, 6:15 PM
#964
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Thank you both.
I did add the rewrite rules in the wrong .htaccess file. This was because my httpdocs folder did not have any. I just created the file for the httpdocs folder and uploaded it.

I still have the same problem when - I click on a category in my category tree.
- When I do a search for a product and then click on a product to go to its page..

This is the .htaccess file in my httpdocs folder. (I added in a rewrite rule for aan html extension and put my shop name in the last line in case it was needed)

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}$
[OR]
RewriteCond %{REQUEST_URI} .(html|htm|php)$ [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} !^/workhere [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite optional_fields directory

RewriteCond %{REQUEST_URI} !^/optional_fields/ [NC]

Don't rewrite classes directory

RewriteCond %{REQUEST_URI} !^/classes/ [NC]

Don't rewrite feed directory

RewriteCond %{REQUEST_URI} !^/feed/ [NC]

Don't rewrite plesk-stat directory

RewriteCond %{REQUEST_URI} !^/plesk-stat/ [NC]

Don't rewrite checkout_by_amazon directory

RewriteCond %{REQUEST_URI} !^/checkout_by_amazon/ [NC]

Don't rewrite _docs directory

RewriteCond %{REQUEST_URI} !^/_docs/ [NC]

Don't rewrite picture_library directory

RewriteCond %{REQUEST_URI} !^/picture_library/ [NC]

Don't rewrite sql updates directory

RewriteCond %{REQUEST_URI} !^/sql\ updates/ [NC]

Don't rewrite extra_datafiles directory

RewriteCond %{REQUEST_URI} !^/extra_datafiles/ [NC]

Don't rewrite auto_loaders directory

RewriteCond %{REQUEST_URI} !^/auto_loaders/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .*/sourceforherbs/index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

10 Jan 2013, 7:10 PM
#965
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 v4.x

I'd start by removing any rules not generated by the add-on and just see if that works 1st before you add new rules..

marvin:

Thank you both.
I did add the rewrite rules in the wrong .htaccess file. This was because my httpdocs folder did not have any. I just created the file for the httpdocs folder and uploaded it.

I still have the same problem when - I click on a category in my category tree.
- When I do a search for a product and then click on a product to go to its page..

This is the .htaccess file in my httpdocs folder. (I added in a rewrite rule for aan html extension and put my shop name in the last line in case it was needed)

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}$
[OR]
RewriteCond %{REQUEST_URI} .(html|htm|php)$ [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} !^/workhere [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite optional_fields directory

RewriteCond %{REQUEST_URI} !^/optional_fields/ [NC]

Don't rewrite classes directory

RewriteCond %{REQUEST_URI} !^/classes/ [NC]

Don't rewrite feed directory

RewriteCond %{REQUEST_URI} !^/feed/ [NC]

Don't rewrite plesk-stat directory

RewriteCond %{REQUEST_URI} !^/plesk-stat/ [NC]

Don't rewrite checkout_by_amazon directory

RewriteCond %{REQUEST_URI} !^/checkout_by_amazon/ [NC]

Don't rewrite _docs directory

RewriteCond %{REQUEST_URI} !^/_docs/ [NC]

Don't rewrite picture_library directory

RewriteCond %{REQUEST_URI} !^/picture_library/ [NC]

Don't rewrite sql updates directory

RewriteCond %{REQUEST_URI} !^/sql\ updates/ [NC]

Don't rewrite extra_datafiles directory

RewriteCond %{REQUEST_URI} !^/extra_datafiles/ [NC]

Don't rewrite auto_loaders directory

RewriteCond %{REQUEST_URI} !^/auto_loaders/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .*/sourceforherbs/index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

10 Jan 2013, 7:19 PM
#966
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 v4.x

marvin:

Thank you both.
I did add the rewrite rules in the wrong .htaccess file. This was because my httpdocs folder did not have any. I just created the file for the httpdocs folder and uploaded it.

I still have the same problem when - I click on a category in my category tree.
- When I do a search for a product and then click on a product to go to its page..
Two things:

  1. The readme has LOTS of great information including > Read the instructions given in that panel and copy and paste the new Rewrite Rule to the store's .htaccess file/VirtualHost directive, as desired.
  2. If you want to add additional rules to your .htaccess file, the readme also includes LOTs of good information on how to do this. (doesn't cover EVERY new rule, just the most common ones)
10 Jan 2013, 7:22 PM
#967
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I did as you suggested (removed my changes and used the original .htaccess file used created by the module) and still get the same error message.

PS. I have read thru the documentation - configuration, Installation, etc over and over and still the same problem.

10 Jan 2013, 7:34 PM
#968
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 v4.x

marvin:

I did as you suggested (removed my changes and used the original .htaccess file used created by the module) and still get the same error message.

PS. I have read thru the documentation - configuration, Installation, etc over and over and still the same problem.
Are you SURE that this is the rules that were generated?? I ask because some of these rules are for folders that would be found in the shop/includes folder (classes, extra_datafiles, auto_loaders, etc). You also have folders that look like they do not belong to any add-on and are extra folders in your shop root..

I'd clean up your shop folders and have Ceon regenerate your .htaccess file.. and try that one instead..

10 Jan 2013, 9:56 PM
#969
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Yes, there were folders from prior modules. I cleaned them up and reran the Installation check. It still had no errors. I used the new .htaccess file and still the same error.

Here is the file:

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} !^/workhere [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite optional_fields directory

RewriteCond %{REQUEST_URI} !^/optional_fields/ [NC]

Don't rewrite feed directory

RewriteCond %{REQUEST_URI} !^/feed/ [NC]

Don't rewrite checkout_by_amazon directory

RewriteCond %{REQUEST_URI} !^/checkout_by_amazon/ [NC]

Don't rewrite _docs directory

RewriteCond %{REQUEST_URI} !^/_docs/ [NC]

Don't rewrite picture_library directory

RewriteCond %{REQUEST_URI} !^/picture_library/ [NC]

Don't rewrite sql updates directory

RewriteCond %{REQUEST_URI} !^/sql\ updates/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .* index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

10 Jan 2013, 10:17 PM
#970
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 v4.x

Wish I could be of more help.. the issue is with your .htaccess file.. But this is not my area of expertise.. Hopefully someone else can help.. The only thing that I can think of is that your httpdocs folder is not where you Zen Cart store's root is.. If this is the case, your .htaccess file is still not in the right place.. (Can't see your store.. so I am guessing)

11 Jan 2013, 3:33 AM
#971
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

My website is https://www.sourceforherbs.com.
Hopefully you can spot something in the source flie.
Thanks, Marvin

11 Jan 2013, 5:06 PM
#972
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 v4.x

marvin:

My website is www.sourceforherbs.com.
Hopefully you can spot something in the source flie.
Thanks, Marvin
Let me be clearer.. The issue is with your .htaccess file.. There's a BUNCH of issues that could be at play including the possibility that your httpdocs folder is not where your Zen Cart store's root is.. If this is the case, your .htaccess file is still not in the right place. I cannot see the BACKEND of your site so it's hard to say what the issue is..

Conor is no longer with us or he would have jumped in to help you out with this.. You may want to consider paying someone to take a peek at your store and help you get this all straightened out.

11 Jan 2013, 8:48 PM
#973
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Diva is right the issue is with your .htaccess file. Try deleting what you have in your .htaccess file and put in what I have provided.
Sometimes, due to how browsers work, you may need to clear (delete) your browser's cache and cookies in order for changes to take effect.

ErrorDocument 404 /index.php?main_page=page_not_found

BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

Canonical Redirect non-blank, non-www and/or appended port number to www [EXCLUDE /admin requests]

RewriteCond %{HTTP_HOST} !^(www.sourceforherbs.com)?$
RewriteRule (.*) http://www.sourceforherbs.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 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} !^/workhere [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite optional_fields directory

RewriteCond %{REQUEST_URI} !^/optional_fields/ [NC]

Don't rewrite feed directory

RewriteCond %{REQUEST_URI} !^/feed/ [NC]

Don't rewrite checkout_by_amazon directory

RewriteCond %{REQUEST_URI} !^/checkout_by_amazon/ [NC]

Don't rewrite _docs directory

RewriteCond %{REQUEST_URI} !^/_docs/ [NC]

Don't rewrite picture_library directory

RewriteCond %{REQUEST_URI} !^/picture_library/ [NC]

Don't rewrite sql updates directory

RewriteCond %{REQUEST_URI} !^/sql\ updates/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .* index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

23 Jan 2013, 2:43 AM
#974
gxjenkins avatar

gxjenkins

Zen Follower

Join Date:
Apr 2007
Location:
Tampa, Florida
Posts:
180
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi,
First of all I want to say this is a great module, and support thread. I've been able to get the script installed, and for the most part working great, but I still have a question.

Below are two products in my store. One uri has the category and the other doesn't. They both work, but why are they different?

Home :: At Home :: Decor :: Silk Flowers
http://yourneighborhoodstore.com/At-Home/Decor/Silk-Flowers/cream-single-phalaenopsis-liquid-illusion-silk-flower-arrangemen

Home :: At Home :: Security :: Safety
http://yourneighborhoodstore.com/uzi-stun-gun-1.5-million-volts-pink

Thanks,

23 Jan 2013, 7:30 AM
#975
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 v4.x

gxjenkins:

Hi,
First of all I want to say this is a great module, and support thread. I've been able to get the script installed, and for the most part working great, but I still have a question.

Below are two products in my store. One uri has the category and the other doesn't. They both work, but why are they different?

Home :: At Home :: Decor :: Silk Flowers
http://yourneighborhoodstore.com/At-Home/Decor/Silk-Flowers/cream-single-phalaenopsis-liquid-illusion-silk-flower-arrangemen

Home :: At Home :: Security :: Safety
http://yourneighborhoodstore.com/uzi-stun-gun-1.5-million-volts-pink

Thanks,

Can't say since we can't see your admin. You can always edit the one URI that is incorrect by editing the product. You might also want to check that the category is using the correct URI. If you read the readme for this module Conor is clear that for existing stores you must manually generate URIs for your existing categories and products. (unless you purchase the Mapping Manager module which will generate the URIs for your existing products and categories.)

If the following setting

Products, Manufacturers and EZ-Pages: Generated URIs are based on their Category Names/Product Names/Manufacturer Names/EZ-Page Titles. For Products/Categories the full Category Path is used.is set to Yes, then the auto generate feature should include the categories in the URI (if there is a URI for the category)..

You also want to make sure that your category names (or derivatives) are not in the excluded words list.

24 Jan 2013, 4:35 AM
#976
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

i am moving my currrent site at http://swordsofhonor.com from a Sunshop store to a Zen Cart store and want to make sure all of my current URL's map one for one to products/pages in the new Zen store. I think this plugin will help me do it but is there a nice simple explanation of how to do to??

for example, i have a URL http://www.swordsofhonor.com/gc1041017.html in my current store and want to make sure it maps exactly to this URL in the new store. I put gc1041017.html in the 'URL mapping' field and when i click on that product in the test store it brings up a 'not found' page. what am i missing?

24 Jan 2013, 4:38 AM
#977
gxjenkins avatar

gxjenkins

Zen Follower

Join Date:
Apr 2007
Location:
Tampa, Florida
Posts:
180
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

DivaVocals, I think I figured it out or at least have an idea why they're different. I used a script I found here:
http://www.zen-cart.com/showthread.php?184548-Ceon-URI-Mapping-v4-x&p=1170313#post1170313 and I think it created the uri's that look like this (category not included):
Home :: At Home :: Security :: Safety
http://yourneighborhoodstore.com/uzi...ion-volts-pink

The uri's that have the category included were created inside zencarts admin. Since they both work I'm not going to worry about it for now.

Thanks,

24 Jan 2013, 5:17 AM
#978
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 v4.x

gxjenkins:

DivaVocals, I think I figured it out or at least have an idea why they're different. I used a script I found here:
http://www.zen-cart.com/showthread.php?184548-Ceon-URI-Mapping-v4-x&p=1170313#post1170313 and I think it created the uri's that look like this (category not included):
Home :: At Home :: Security :: Safety
http://yourneighborhoodstore.com/uzi...ion-volts-pink

The uri's that have the category included were created inside zencarts admin. Since they both work I'm not going to worry about it for now.

Thanks,

No offense to the contributor of the script you ran, but it's an incomplete solution and apparently the following message in it is a clue that it is not a complete solution.

Categories must be updated manually through the regular store interface before running this script

Conor's commercial app for generating URIs for existing store's is WELL worth the small cost for it. It's quick and COMPLETE (covers categories, products, EZ Pages, and defined pages), and is written in the same thorough manner that all of Conor's modules were written.

24 Jan 2013, 5:20 AM
#979
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 v4.x

tyankee:

i am moving my currrent site at http://swordsofhonor.com from a Sunshop store to a Zen Cart store and want to make sure all of my current URL's map one for one to products/pages in the new Zen store. I think this plugin will help me do it but is there a nice simple explanation of how to do to??

for example, i have a URL http://www.swordsofhonor.com/gc1041017.html in my current store and want to make sure it maps exactly to this URL in the new store. I put gc1041017.html in the 'URL mapping' field and when i click on that product in the test store it brings up a 'not found' page. what am i missing?Sounds like your .htaccess file is not configured correctly.. I suspect you would have the SAME issue if you used the auto-generate feature for your URIs..

24 Jan 2013, 5:26 AM
#980
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

DivaVocals:

No offense to the contributor of the script you ran, but it's an incomplete solution and apparently the following message in it is a clue that it is not a complete solution.

Conor's commercial app for generating URIs for existing store's is WELL worth the small cost for it. It's quick and COMPLETE (covers categories, products, EZ Pages, and defined pages), and is written in the same thorough manner that all of Conor's modules were written.

who is this 'Conor' that you speak of and where can i find his software??