Re: Ceon URI Mapping (SEO)
Hi Stephen,
Quote:
Originally Posted by
stecrox
However when I ran it on
http://www.jbconline.eu the issue did not occur. (they are both hosted by the same hosting company)
I'm afraid I really can't see how it's working on one site and not the other!
All I can say is what I'd do.. double check you don't have anything strange in your htaccess file, check that you have nothing strange in your virtualhost directive.
Hope that helps!
All the best...
Conor
ceon
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
CJPinder
Christian,
I know that this is quite an old post now, but wondering how your fix went for you.
I find that... http://www.example.com/index.php&main_page=index works fine but http://www.example.com/index.php&mai...dex?gclid=xxxx gives me a 404.
Did you have this problem? If so how did you get around it?
Anthony.
Re: Ceon URI Mapping (SEO)
Never mind, I had some hard-coded links that overrode the URI mappings. I need to get less complicated!
Re: Ceon URI Mapping (SEO)
It's me again ...
The problem I was having when I provided translated URIs for some of my Spanish pages was that I had a trailing space after the URI definition (edited via phpMyAdmin), e.g. I entered '/condiciones ' instead of '/condiciones'. Removing the trailing space made all the URI remapping happy again.:blush:
I'm just hoping this might help someone else.
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
Malx
Just an update and after applying the latest version of Ceon's mod everything works just fine, including going to http://www.example.com/?gclid=xxxx directly.
Thanks for the great work.
Anthony.
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi Stephen,
I'm afraid I really can't see how it's working on one site and not the other!
All I can say is what I'd do.. double check you don't have anything strange in your htaccess file, check that you have nothing strange in your virtualhost directive.
Hope that helps!
All the best...
Conor
ceon
hello, conor.
Thanks for your wonderful URI mod. we love it so much.
after installed, it rewirte categories/products/ezpges prefectly.
however, may i ask you if this URI mod can rewrite NEWS and ARTICLES mod at http://www.zen-cart.com/index.php?ma...oducts_id=1132
thanks again:smile:
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
Jerry5763837
hello, conor.
Thanks for your wonderful URI mod. we love it so much.
after installed, it rewirte categories/products/ezpges prefectly.
however, may i ask you if this URI mod can rewrite NEWS and ARTICLES mod at
http://www.zen-cart.com/index.php?ma...oducts_id=1132
thanks again:smile:
Suggest you read the readme that comes with Conor's module that addresses how to create URIs for other Zen Content..
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
DivaVocals
Suggest you read the readme that comes with Conor's module that addresses how to create URIs for other Zen Content..
Yes, that's right.. you'll be able to add URIs for those pages using that documentation (using PHPMyAdmin to manually add records with the query string parameters field being used to map individual articles).
I'd imagine the module you linked to could have code added so that it adds URIs to the database automatically but I'm afraid it would indeed require rewriting those modules to add the necessary PHP code.
All the best..
Conor
ceon
Re: Ceon URI Mapping (SEO)
hello, conor,
thanks for your quick answer.
i tried to add a new record to the ceon_uri_mapping table to rewrite
/index.php?main_page=news, but unfortunately failed.
my settings are as follows:
# The URI mapping to be mapped from should be entered in the uri field. (/index.php?main_page=news)
# The number representing the language ID this URI mapping applies for should be entered in the language_id field. (en)
# The current_uri field should be set to “1” to make this the “current” URI. (1)
# The Zen Cart page to be mapped to should be entered in the main_page field. (/news)
# The date/time this URI mapping was added should be set in the date_added field (or just use the “NOW()” SQL function). (leave as it is)
# The query_string_parameters, associated_db_id and alternate_uri fields are not used, they must be left as “NULL”. The redirection_type_code is not used either so it doesn't matter what value it has (it can just be left at the default value of 301). (leave as it is)
could you plesae help to check if any mistake about above settings?
if also wan to rewrite /index.php?main_page=news_article&article_id=1 to /news/article_title, is it possible to achieve this? How?
appreciated.
Example of HOW TO ADD URI MAPPING FOR ANY OTHER ZEN CART PAGE
Hi,
Quote:
Originally Posted by
Jerry5763837
hello, conor,
thanks for your quick answer.
You're welcome.
Quote:
Originally Posted by
Jerry5763837
i tried to add a new record to the ceon_uri_mapping table to rewrite
/index.php?main_page=news, but unfortunately failed.
I'll be honest with you, it doesn't appear you spent much time at all reading the instructions?
Quote:
Originally Posted by
Jerry5763837
my settings are as follows:
# The URI mapping to be mapped from should be entered in the uri field. (/index.php?main_page=news)
So you want this to be:
/news
Quote:
Originally Posted by
Jerry5763837
# The number representing the language ID this URI mapping applies for should be entered in the language_id field. (en)
"The Number representing"
so
1
if your language ID is 1 (if you only have one language that is likely).
Quote:
Originally Posted by
Jerry5763837
# The current_uri field should be set to “1” to make this the “current” URI. (1)
Yes, that's right.
Quote:
Originally Posted by
Jerry5763837
# The Zen Cart page to be mapped to should be entered in the main_page field. (/news)
/news is a URI not a Zen Cart page but the following is the name of the a Zen Cart page:
news
Quote:
Originally Posted by
Jerry5763837
# The date/time this URI mapping was added should be set in the date_added field (or just use the “NOW()” SQL function). (leave as it is)
I would have set it to "NOW()" as that allows the historical mapping to work properly and it only takes 2 seconds to select it from the dropdown!
Quote:
Originally Posted by
Jerry5763837
# The query_string_parameters, associated_db_id and alternate_uri fields are not used, they must be left as “NULL”. The redirection_type_code is not used either so it doesn't matter what value it has (it can just be left at the default value of 301). (leave as it is)
could you plesae help to check if any mistake about above settings?
I realise that examples in the docs may make these easier for people so will try to add some for the next version.
I've gone and spent this time to give an example here but I want to make anyone else who is reading this aware that I won't giving site-specific examples here frequently, I don't have the time, so please don't ask! (Sorry but life is too short to be so generous with time ;) )
Quote:
Originally Posted by
Jerry5763837
if also wan to rewrite /index.php?main_page=news_article&article_id=1 to /news/article_title, is it possible to achieve this? How?
Given the above and the section of the docs "Specifying the current URI Mapping for any other Zen Cart page" (part 2 of that section) you should be able to figure out what to enter.
I'll say specifically though so I don't need to reply later. please read the docs and try it yourself first then take note of the following if need be:
uri will be
/news/article_title
main_page will be
news_article
query_string_parameters will be
article_id=1
Enjoy the module and good luck with your site.
Now to get on to actual development work etc... :)
All the best...
Conor
ceon