Re: 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
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&act ion=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
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
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!
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
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]
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chal2les
Everything works, but my admin page does not show up.
I think you need to remove the lines:
Quote:
Originally Posted by
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:
Quote:
Originally Posted by
chal2les
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/adminmy.* [NC]
That should be all you need to do.
All the best..
Conor
ceon
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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&acti on=view_product
Alternatively you will have to store the values of the POST array before redirecting.
Quote:
Originally Posted by
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
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
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?
Quote:
Originally Posted by
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
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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!
Quote:
Originally Posted by
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
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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