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

Ceon URI Mapping (SEO)

Locked

Views: 472,332

Results 1,261 to 1,280 of 2,913
This thread is locked. New replies are disabled.
25 Mar 2010, 10:15 PM
#1261
chal2les avatar

chal2les

New Zenner

Join Date:
Mar 2010
Posts:
63
Plugin Contributions:
0

Ceon URI Mapping (SEO)

Hi,

I was able to install ceon 3.2.4 and saw the module.

After updating the products I will get an 404 error.

"Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

"The requested URL /store/eyes was not found on this server."

I searched through the thread, but did not find a solution.

Can anyone help?

Thanks

25 Mar 2010, 10:53 PM
#1262
attheend avatar

attheend

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi,

I'm having an issue trying to pass form data from an "external" file to a product page that has add-ons. It seems that the POST form data gets lost when the Ceon URI Mapping redirects the form to the current URL for the specific product.

The action is :index.php?main_page=product_info&cPath=17&products_id=2&number_of_uploads=0&action=view_product

And the resulting page URL is: category-name/product-name?cPath=17&number_of_uploads=0&action=view_product

When I print the POST array all the data is gone. The file has been working for years until I installed Ceon URI Mapping.

Any help would be most appreciated.

Thank you

26 Mar 2010, 12:09 AM
#1263
chal2les avatar

chal2les

New Zenner

Join Date:
Mar 2010
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

chal2les:

Hi,

I was able to install ceon 3.2.4 and saw the module.

After updating the products I will get an 404 error.

"Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

"The requested URL /store/eyes was not found on this server."

I searched through the thread, but did not find a solution.

Can anyone help?

Thanks

I was missing the htaccess file. :clap:

I think it works now!

26 Mar 2010, 5:45 AM
#1264
chal2les avatar

chal2les

New Zenner

Join Date:
Mar 2010
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

chal2les:

I was missing the htaccess file. :clap:

I think it works now!

Okay I have another issue.

Everything works, but my admin page does not show up.

It only shows up if I use /admin/login.php

I can say that it's the htaccess file since when I remove it the /admin site works again.

Anyone have a clue?

My htaccess file contain the following:

RewriteEngine On

ONLY rewrite URIs beginning with /store/

RewriteCond %{REQUEST_URI} ^/.* [NC]

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} !^/adminmy.* [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]

26 Mar 2010, 9:56 AM
#1265
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

chal2les:

Everything works, but my admin page does not show up.

I think you need to remove the lines:

chal2les:

ONLY rewrite URIs beginning with /store/

RewriteCond %{REQUEST_URI} ^/.* [NC]

And make sure you exlude your admin directory from the rewrite rule. Check you have the correct value for:

chal2les:

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/adminmy.* [NC]

That should be all you need to do.

All the best..

Conor
ceon

26 Mar 2010, 10:01 AM
#1266
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

AtTheEnd:

I'm having an issue trying to pass form data from an "external" file to a product page that has add-ons. It seems that the POST form data gets lost when the Ceon URI Mapping redirects the form to the current URL for the specific product.

AtTheEnd:

When I print the POST array all the data is gone.

Yes, that's the way redirection works.. POST variables aren't available after a redirect unless they are specifically stored in the session using custom coding.

What you have to do is post to the final URI, not an intermediary.

So change the action of your external form to post to:

category-name/product-name

instead of

index.php?main_page=product_info&cPath=17&products_id=2&number_of_uploads=0&action=view_product

Alternatively you will have to store the values of the POST array before redirecting.

AtTheEnd:

The file has been working for years until I installed Ceon URI Mapping.

If you change the way a site works you shouldn't expect it to work the same as before! :p

That's all you need to get this working..

All the best..

Conor
ceon

26 Mar 2010, 4:30 PM
#1267
dchrastil avatar

dchrastil

New Zenner

Join Date:
Sep 2007
Location:
Colorado, USA
Posts:
68
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Ok, I have a question. I tried to search and see if anyone has asked this before but I didn't find anything.

When customers have an item in their shopping cart and click on the "Edit this product" button it just brings up the blank product-info page for that item.

I found the problem is that it is removing the query string "products_id=153" which is used to pull the correct item from the shopping cart session variable.

Any ideas on how to go about fixing this?

Thanks,
Danny

26 Mar 2010, 5:08 PM
#1268
chal2les avatar

chal2les

New Zenner

Join Date:
Mar 2010
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi,

I removed

ONLY rewrite URIs beginning with /store/

RewriteCond %{REQUEST_URI} ^/.* [NC]

and double check my don't rewrite for admin directory

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/adminmy.* [NC]

And I am still having issue logging in the admin page.

Any other ideas?

conor:

Hi,

I think you need to remove the lines:

And make sure you exlude your admin directory from the rewrite rule. Check you have the correct value for:

That should be all you need to do.

All the best..

Conor
ceon

26 Mar 2010, 5:47 PM
#1269
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Dchrastil:

When customers have an item in their shopping cart and click on the "Edit this product" button it just brings up the blank product-info page for that item.

What's the "Edit this product" button?

Fresh versions of Zen Cart have no such button!

Dchrastil:

I found the problem is that it is removing the query string "products_id=153"

That variable is automatically recreated when a mapped URI is loaded so you must be experiencing some other problem. I'll possibly know more when you describe the button you are talking about above.

All the best..

Conor
ceon

26 Mar 2010, 5:47 PM
#1270
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

chal2les:

And I am still having issue logging in the admin page.

Any other ideas?

I'm afraid not.

Sorry!

All the best...

Conor
ceon

26 Mar 2010, 6:16 PM
#1271
chal2les avatar

chal2les

New Zenner

Join Date:
Mar 2010
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Do you think its okay to just leave it like that and access the admin page through

admin/login.php ?

Thanks for the help.

26 Mar 2010, 6:27 PM
#1272
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

chal2les:

Do you think its okay to just leave it like that and access the admin page through

admin/login.php ?

That sounds like a working alternative solution.. why not then? :)

All the best..

Conor
ceon

26 Mar 2010, 6:31 PM
#1273
chal2les avatar

chal2les

New Zenner

Join Date:
Mar 2010
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

It seems like I figured it out.

I used the below htaccess file.

RewriteEngine On

ONLY rewrite URIs beginning with /store/

RewriteCond %{REQUEST_URI} ^/store/.* [NC]

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} !^/store/adminmy.* [NC]

Don't rewrite editors directory

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

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/forums.* [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 (.*) /store/index.php?%{QUERY_STRING} [L]

Thanks alot for this module. I will enjoy using it.

29 Mar 2010, 10:55 AM
#1274
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

chal2les:

It seems like I figured it out.

Ah, I see you mixed up your rewrite rules, using the one for the root folder when you should have been using the one for the store folder.

chal2les:

Thanks alot for this module. I will enjoy using it.

Glad you like it! Thanks for letting us know what you'd done wrong.. I couldn't see what else to suggest based on what you'd posted and am glad it is all working now!

All the best..

Conor
ceon

29 Mar 2010, 4:42 PM
#1275
chal2les avatar

chal2les

New Zenner

Join Date:
Mar 2010
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi,

I actually moved the htaccess to the root folder after it did not work and rewrote the htaccess file to have the store folder.

It somehow resolved it but definately was not because of wrong location.

Thanks for the help!

Charles

29 Mar 2010, 5:05 PM
#1276
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Charles,

chal2les:

It somehow resolved it but definately was not because of wrong location.

It wasn't the location but the content of the .htaccess file that was the problem.. as your store was in a subdirectory, it needed to use the rule for a subdirectory, whereas you'd been using the rule for a store with no subdirectory. Once you used the right rule things started to work! :)

chal2les:

Thanks for the help!

No problem!

All the best...

Conor
ceon

2 Apr 2010, 9:04 PM
#1277
games4gamers avatar

games4gamers

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi ceon,

I really like your mod. I had some issues with my site and had to modify the .htaccess files and now I can't get back into my admin. I have 2 .htaccess files. One in the root directory (to redirect to the store) and one in the store directory. Here they are:

Root:

Options +FollowSymLinks
RewriteEngine on
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
RewriteRule ^(.*) http://www.games4gamersonline.com/zencart/$1 [R=301,L]

Store:

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

What do I need to do to fix this? Admin keeps redirecting to the home page? Thanks for any help.

2 Apr 2010, 10:10 PM
#1278
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

In ALL of the RewriteCond patterns, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.

Change the reference to 'admin' to reflect what your admin folder is actually called.

Beware of paths that are localised when used with RewriteRule when the .htaccess is in a folder.

3 Apr 2010, 3:29 AM
#1279
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)

You have your store in a subdirectory and are using a redirect so that when folks hit your main domain they are redirected to the sub-directory??? Why do you have Zen Cart setup in this manner?? You could solve a LOT of your issues by moving Zen Cart into your site root and NOT use a sub directory at all..

games4gamers:

Hi ceon,

I really like your mod. I had some issues with my site and had to modify the .htaccess files and now I can't get back into my admin. I have 2 .htaccess files. One in the root directory (to redirect to the store) and one in the store directory. Here they are:

Root:

Options +FollowSymLinks
RewriteEngine on

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
RewriteRule ^(.*) http://www.games4gamersonline.com/zencart/$1 [R=301,L]

> 
> ```
# ONLY rewrite URIs beginning with /zencart/
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# 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} !^/zencart/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencart/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]
```What do I need to do to fix this? Admin keeps redirecting to the home page? Thanks for any help.
3 Apr 2010, 3:50 PM
#1280
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hello,

Will this module work for an addon domain? Im getting HTTP 404 Not Found when im using exactly the same .htaccess as the main domain.

Thanks