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

Ceon URI Mapping v4.x

Views: 452,147

Results 1,021 to 1,040 of 2,454
27 Jan 2013, 6:29 AM
#1021
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

tyankee:

there is NO URI field that shows when you edit a product.. there is a field called Products URL and a field called URI Mapping.. i entered gc1041017.html in the URI Mapping field and when i accessed the product sure enough it tried to find gc1041017.html but came up with a 404 page not found.URI Mapping field = URI field..

and you are probably getting the 404 error because you have not updated the .htaccess file as per the instructions in the section I keep referring you to.. (sorry.. not trying to be a PITA, but this is a KEY part of accomplishing what you want)

27 Jan 2013, 6:32 AM
#1022
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:

btw, i see where you might be a Mustang afficionado?? if so, did you check out my mustang site at http://mustangtraderonline.com. used to be our number #1 with over 20000 visitors per day - until Penguin..Yep.. drag race and have a hubby who is the Senior Tech Editor of the number one 5.0 Mustang publication. He might be familiar with your site..

27 Jan 2013, 5:53 PM
#1023
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Ceon URI Mapping v4.x

tyankee:

there is NO URI field that shows when you edit a product.. there is a field called Products URL and a field called URI Mapping.. i entered gc1041017.html in the URI Mapping field and when i accessed the product sure enough it tried to find gc1041017.html but came up with a 404 page not found.

Post your .htaccess file so we can take a look at it. This way we can see whatsgoing on.

27 Jan 2013, 7:50 PM
#1024
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

countrycharm:

Post your .htaccess file so we can take a look at it. This way we can see whatsgoing on.

it's just the standard htaccess that he recommends:

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-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} .(html)$ [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} !^/backend [NC]

Don't rewrite editors directory

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

Don't rewrite logs directory

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

Don't rewrite catalog directory

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

Don't rewrite tempEP directory

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

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

RewriteRule .* index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

27 Jan 2013, 7:57 PM
#1025
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

DivaVocals:

URI Mapping field = URI field..

and you are probably getting the 404 error because you have not updated the .htaccess file as per the instructions in the section I keep referring you to.. (sorry.. not trying to be a PITA, but this is a KEY part of accomplishing what you want)

so are so corrrect Keem-O-Sabe.. i updated the htaccess and now that's i've put the different pieces in place i think i got it.. so sorry to be a PITA here but i guess when you're a newbie, you ask dumb questions, hoping for smart answers.. so now it looks like i only have to put my OLD URL into the URI Mapping field and my new URL's will match my old ones. perfect.. thanks again..

27 Jan 2013, 8:00 PM
#1026
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

DivaVocals:

Yep.. drag race and have a hubby who is the Senior Tech Editor of the number one 5.0 Mustang publication. He might be familiar with your site..

he might be as we were #1 for the biggest keywords - mustangs for sale, and mustang for sale for 6 years in a row - until Penguin.. is that 5.0 mustangs and Super Fords?? maybe we could do some business together..

27 Jan 2013, 10:58 PM
#1027
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:

so are so corrrect Keem-O-Sabe.. i updated the htaccess and now that's i've put the different pieces in place i think i got it.. so sorry to be a PITA here but i guess when you're a newbie, you ask dumb questions, hoping for smart answers.. so now it looks like i only have to put my OLD URL into the URI Mapping field and my new URL's will match my old ones. perfect.. thanks again..Glad you got it sorted out..

28 Jan 2013, 5:13 AM
#1028
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

DivaVocals:

Glad you got it sorted out..

not quite yet.. the product url's work good but the category ones - not so good.. no at all.. i uploaded all the products at http://medievalclothing.co and if you click on the category 'medieval clothing', i get another 404 not found page.. but if you go to a specific product such as http://medievalclothing.co/monksrobe.html - the link works.. is there something special about categories??

28 Jan 2013, 5:16 AM
#1029
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:

not quite yet.. the product url's work good but the category ones - not so good.. no at all.. i uploaded all the products at http://medievalclothing.co and if you click on the category 'medieval clothing', i get another 404 not found page.. but if you go to a specific product such as http://medievalclothing.co/monksrobe.html - the link works.. is there something special about categories??
Please review the readme.. URI's for categories, products, and EZ pages all work the same way.. If the readme is not clear, then it helps if you can let us know what part needs further clarification..

28 Jan 2013, 5:27 AM
#1030
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

DivaVocals:

Please review the readme.. URI's for categories, products, and EZ pages all work the same way.. If the readme is not clear, then it helps if you can let us know what part needs further clarification..

darn, i think i read it clearly.. i've attached a screenshot showing i entered the value of medieval-clothing.html in the right field.. the only part of the docs i didn't understand is 'Please Remember: URI mappings entered manually must be relative to the root of the site (“/”), and must be the full path to the category. E.g. “/category-one/subcategory-of-category-one”'

i used the / but don't understand the 'full path' part.. this category is at the root level.
Attachment 11844

28 Jan 2013, 2:41 PM
#1031
lhungil avatar

lhungil

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Your .htaccess file is not sending URIs including alphanumbericals, a dash "-", and end with ".html" to index.php. You need to update your .htaccess file.

28 Jan 2013, 3:35 PM
#1032
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:

Your .htaccess file is not sending URIs including alphanumbericals, a dash "-", and end with ".html" to index.php. You need to update your .htaccess file.
I tested adding the same category URI (/medieval-clothing.html), and had no issue.. (I of course did not tick the auto generate checkbox) I used the same suggested rule that Conor's documents suggest for URI's ending in ".html"..

# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} \.(html)$ [NC]
28 Jan 2013, 5:51 PM
#1033
lhungil avatar

lhungil

Totally Zenned

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

Re: Ceon URI Mapping v4.x

DivaVocals:

I tested adding the same category URI (/medieval-clothing.html), and had no issue.. (I of course did not tick the auto generate checkbox) I used the same suggested rule that Conor's documents suggest for URI's ending in ".html"...
Yup, that should work using the "stock" CEON .htaccess file. I am not sure what is different in tyankee's file, but if you follow the link provided you will see a generic Apache 404 error message.

If you try typing in some other invalid links without a dash "-" you will see the Zen Cart 404 error message.

This indicates a high possibility tyankee's .htaccess file is not actually sending the request to Zen Cart when a dash "-" is in the URI.

28 Jan 2013, 7:01 PM
#1034
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

lhungil:

Your .htaccess file is not sending URIs including alphanumbericals, a dash "-", and end with ".html" to index.php. You need to update your .htaccess file.

huh?? did you read my post?? it sends the product ones fine - just not the category ones.. here's one it sends fine - http://medievalclothing.co/monksrobe.html - that one has html in it..

28 Jan 2013, 7:03 PM
#1035
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

DivaVocals:

I tested adding the same category URI (/medieval-clothing.html), and had no issue.. (I of course did not tick the auto generate checkbox) I used the same suggested rule that Conor's documents suggest for URI's ending in ".html"..

Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} .(html)$ [NC]


as you can see in previous posts by htaccess file is the same as his recommendation and DOES work for product URI redirects - just not the category ones..
28 Jan 2013, 7:04 PM
#1036
tyankee avatar

tyankee

Zen Follower

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

Re: Ceon URI Mapping v4.x

tyankee:

as you can see in previous posts by htaccess file is the same as his recommendation and DOES work for product URI redirects - just not the category ones..
oh and of course i didn't tick the auto-generate box either..

28 Jan 2013, 8:22 PM
#1037
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:

Yup, that should work using the "stock" CEON .htaccess file. I am not sure what is different in tyankee's file, but if you follow the link provided you will see a generic Apache 404 error message.

If you try typing in some other invalid links without a dash "-" you will see the Zen Cart 404 error message.

This indicates a high possibility tyankee's .htaccess file is not actually sending the request to Zen Cart when a dash "-" is in the URI.Why would it work for my test setup then?? I have the same directive in my test site's .htaccess file that Conor suggests, and both categories and products work just fine with dashes and the ".html" file extension..

28 Jan 2013, 8:23 PM
#1038
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:

as you can see in previous posts by htaccess file is the same as his recommendation and DOES work for product URI redirects - just not the category ones..

Then my other recommendation at this point is probably in order.. You might need to hire someone to help you get this all setup for you..

28 Jan 2013, 9:22 PM
#1039
lhungil avatar

lhungil

Totally Zenned

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

Re: Ceon URI Mapping v4.x

tyankee
You need to rename your admin folder. The name you picked is too easy to guess / find and may be a large cause of the issues you are encountering. Please use a random sequence of letters and numbers.

28 Jan 2013, 9:46 PM
#1040
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:

tyankee
You need to rename your admin folder. The name you picked is too easy to guess / find and may be a large cause of the issues you are encountering. Please use a random sequence of letters and numbers.
nods in agreement:yes:

As a suggestion, I personally like to use this site to generate a random sequence of numbers that I use as a part of my client's admin folder name: http://www.random.org/passwords/. I append the sequence generated to the word(s) admin or control or manage to make up the admin directory name.
ie: managepL8uhGXQRd9htnPP or adminpL8uhGXQRd9htnPP