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

Ceon URI Mapping (SEO)

Locked

Views: 472,310

Results 1,061 to 1,080 of 2,913
This thread is locked. New replies are disabled.
29 Jan 2010, 5:30 PM
#1061
conor avatar

conor

Passed

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

Ceon URI Mapping (SEO)

Hi,

new2u:

Is there a way to change the home link on the site to direct to / rather than /index.php?main_page=index .... ? I am using the ceon uri remap,

By default if your site uses

define('DIR_WS_CATALOG', '/');

in your configure.php file then your homepage should just be /

If that isn't happening for you then you should check your htaccess file and your configure.php settings. You should also check if you have any hard-coded index.php?main_page=index links on your site.

I'm afraid that's as much help as I can be as anything else is probably a problem with your server/site setup which would need someone to take a look at manually. Good luck with this.

All the best...

Conor
ceon

30 Jan 2010, 2:08 AM
#1062
davpas avatar

davpas

New Zenner

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

Re: Ceon URI Mapping (SEO)

Hi everyone,
Just an FYI for an issue I had:
My installation is at my root level, so I used the first .htaccess code example from the documentation.

The rewrite statement at the end is:
RewriteRule (.*) index.php?%{QUERY_STRING} [L]

For my installation, I had to add the ^ symbol before the (.*) in order for it to not throw 404 (page-not-found) errors.

ie: RewriteRule ^(.*) index.php?%{QUERY_STRING} [L]

I don't know if this is just because of the particular server I'm on (hosted with Steadfast Networks) or if it's possibly a typo.

Anyhoo, that's what worked for me. Hopefully it may save someone else from pulling their hair out.

30 Jan 2010, 4:22 AM
#1063
jerry5763837 avatar

jerry5763837

Zen Follower

Join Date:
May 2008
Posts:
261
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

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

dear Ceon,

Great! worked perfect! genious mod.

but we have to inset table by phpMyadmin for every articles.
is it possible to set the article url through admin ares, jsut like category / ezpage .....:clap:

many appreciated for your sugestions.

30 Jan 2010, 5:18 AM
#1064
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)

Jerry5763837:

dear Ceon,

Great! worked perfect! genious mod.

but we have to inset table by phpMyadmin for every articles.
is it possible to set the article url through admin ares, jsut like category / ezpage .....:clap:

many appreciated for your sugestions.This is answered in the very well written readme document that comes with this module.. In the very same place that explains how to create URIs for other site pages..

I agree with Conor's previous statement.. "I'll be honest with you, it doesn't appear you spent much time at all reading the instructions"

30 Jan 2010, 5:56 AM
#1065
jerry5763837 avatar

jerry5763837

Zen Follower

Join Date:
May 2008
Posts:
261
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

DivaVocals:

This is answered in the very well written readme document that comes with this module.. In the very same place that explains how to create URIs for other site pages..

I agree with Conor's previous statement.. "I'll be honest with you, it doesn't appear you spent much time at all reading the instructions"

Hi DivaVocals,

You are right, it can rewirt the /index_page?main_page=news_article&article_id=4 by inset table into SQL. however, when pulish each areticle, have go to SQL by phpMyadmin to insert table for every artecle,

I mean is it possible to manually edit URL for each article through Admin area, same as category/product/ezpage ?:lamo:

30 Jan 2010, 9:25 AM
#1066
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Jerry5763837:

I mean is it possible to manually edit URL for each article through Admin area, same as category/product/ezpage ?:lamo:

The news articles module is a third party module which is not part of Zen Cart as standard.

It would be perfectly possible to rewrite it to add in support for auto-generating URIs using the URI Mapping autogeneration software.

You'd have to add this functionality yourself or pay to have it added, there are no plans at Ceon to start updating other modules for free to use URI Mapping autogeneration.

All the best...

Conor
ceon

30 Jan 2010, 9:00 PM
#1067
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Thanks for this great mod Connor.
I installed and it works perfectly first time!
It did take a while to find out how to get my ezpage links to work but once I found out how to add them to the database with myphpadmin everything was easy!

I have a question regarding omitting certain links from URI mapping.
I've searched for hours and found nothing so I hope someone here can help.

In my store, when you're looking at the shopping cart page and you click on one of the products in your cart, you're taken to the product info page.
If the product has attributes, the attribute id is appended to the URI.

For example,
If I click on a product in the product listing, the URI I see is:
/shop/index.php?main_page=product_info&products_id=84
Whereas if I click on the same product in the shopping cart, the URI I see is:
/shop/index.php?main_page=product_info&products_id=84:4f76ce1edf582a4cbb64beef4a416bc7

The bit after the colon is the attribute id.

My question is, can I somehow stop the second link being processed by the URI mapping?

I was thinking of a rule in the .htaccess file that omits anything with a query string of
main_page=product_info&products_id=:

but am not sure if it is possible or if it is what the correct syntax would be?

The reason I need to do this is because my product info page needs to be able to read the products_id value from the URI to do some extra custom processing.
If there's a better way to leave this on the URI other than by .htaccess please let me know!

Thanks for your help!
Regards,
Damian

31 Jan 2010, 12:45 PM
#1068
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Glad you like the software!

damiantaylor:

The reason I need to do this is because my product info page needs to be able to read the products_id value from the URI to do some extra custom processing.

Why not just adjust that custom code of yours to strip everything after the colon in the product's ID?

I think you should probably start a separate thread about this, it's not really a URI Mapping issue.

All the best...

Conor
ceon

31 Jan 2010, 4:00 PM
#1069
milkyway avatar

milkyway

Inactive

Join Date:
Aug 2006
Location:
Singapore
Posts:
167
Plugin Contributions:
1

Re: Ceon URI Mapping (SEO)

Hi Conor,

What a great script you have, it is outstanding, the guide also very comprehensive.

I just testing in one of my client's site, it works great, but this site has existing categories and products, there are about thousand of them, so since this mod doesn't mapping existing categories and products, I have to go to each category and product and click 'edit' and 'save' so that the script auto generated the URI, without clicking 'edit' and 'save' the original dynamic URL doesn't change.

I'm sure there is a way to auto-generated all existing categories/products, but I couldn't find it after browsing the support thread.

I really appreciate if you can give me a hint how to solve this problem, not really a mod problem, but a huge task for me to go to and edit each of thousand products.

Also one issue I got, after editing a product, I found additional at the end 'cPath=", how to get rid of this? I didn't yet search thread for a solution, but might want to know if this is a simple fix.

Thanks so much!

Donny

31 Jan 2010, 9:03 PM
#1070
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I had a couple of hours away from this and think I have come up with a fix.
If Ceon URI Mapping has broken your edit cart mod, try this. It seems to work for me :clap:

http://www.zen-cart.com/forum/showthread.php?p=836537#post836537

I'm not sure if it will work with any other SEO mods other than Ceon though

1 Feb 2010, 8:09 AM
#1071
piker avatar

piker

Zen Follower

Join Date:
Nov 2009
Posts:
109
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I am showing a lot of errors like this ( File does not exist: /home/allnativ/public_html/xxxxx) in my PhpAdmin Error Log. Just wondering if its possible I've missed something in the Rewrite Rules or Htaccess file? Of course it may not have anything to do with installing this module. Just thought I'd ask.

1 Feb 2010, 9:17 AM
#1072
holligoly avatar

holligoly

New Zenner

Join Date:
Sep 2009
Posts:
5
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Using the latest version of zen cart and the CEON SEO module. The module works great...had no problem configuring it for most of my site. However, for one category it does not work. I cant figure out why it does not work. It even works for the first product in that category...but not for other products.

check this out. This works fine.

http://thecoolershade.com/store/Mens.Rings/Steel.Rings/Engraved.Tribal.Design.Steel.Ring.I

This does not work at all.
http://thecoolershade.com/store/Mens.Rings/Steel.Rings/Celtic.Link.Embossed.Steel.Ring

this only happens in the Men's Rings category and everything else works great. Any help is appreciated.

1 Feb 2010, 10:46 AM
#1073
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Holligoly:

This does not work at all.
http://thecoolershade.com/store/Mens.Rings/Steel.Rings/Celtic.Link.Embossed.Steel.Ring.

The example rewrite rules don't rewrite any URI ending in a dot and between 2 and four alphabetic characters. So the above URI isn't being rewritten.

You have to adjust your rewrite rules but please be aware that if you simply delete the following rewrite condition :

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,4}$

then no images will show on your site etc as their paths will also be rewritten
(.jpg, .css etc.)

You can switch from using full stops or you can add exceptions for each extension one by one by removing the above line and adding them:

RewriteCond %{REQUEST_URI} !.jpg$
RewriteCond %{REQUEST_URI} !.css$

etc

All the best..

Conor
ceon

1 Feb 2010, 10:49 AM
#1074
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

piker:

I am showing a lot of errors like this ( File does not exist: /home/allnativ/public_html/xxxxx) in my PhpAdmin Error Log. Just wondering if its possible I've missed something in the Rewrite Rules or Htaccess file? Of course it may not have anything to do with installing this module. Just thought I'd ask.

Possibly. It's impossible to tell without knowing what paths are throwing 404s!

It should be easy enough to go through your logs, see what paths are causing 404s, checking if a file is missing from that path or it the URI rewrite rule is blocking access to that path and adding an exception for that path. all the info you need for adding exceptions is in the documentation.

All the best...

Conor
ceon

1 Feb 2010, 3:36 PM
#1075
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

By default if your site uses

define('DIR_WS_CATALOG', '/');

in your configure.php file then your homepage should just be /

If that isn't happening for you then you should check your htaccess file and your configure.php settings. You should also check if you have any hard-coded index.php?main_page=index links on your site.

I'm afraid that's as much help as I can be as anything else is probably a problem with your server/site setup which would need someone to take a look at manually. Good luck with this.

All the best...

Conor
ceon

Configure.php is set to use / here is a copy of my htaccess file... I don't think anything is missing. If you have a min to give it a quick glance that would be great

RewriteEngine on
# redirects any URL that includes: record_company.php/password_forgotten.php
RedirectMatch Permanent ^/(.*[record_company.php]+)/(password_forgotten.php)$ /page_not_found.php
# redirects any URL that includes: /images/wp- with 'wp-' being anything that ends with '.php'
# this allows for images named such as 'wp-header.jpg' to work
RedirectMatch Permanent ^/(.*[images]+)/(wp-.*\.php)$ /page_not_found.php
# 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} !^/admin.* [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]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} ^blog.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
1 Feb 2010, 3:56 PM
#1076
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

new2u:

Configure.php is set to use / here is a copy of my htaccess file... I don't think anything is missing. If you have a min to give it a quick glance that would be great

That all looks okay. Which means it's probably something custom on your server I'm afraid.

You should be able to manually trace this by randomly outputting the contents of the server variables (using var_dump) and seeing where the index.php?main_page is being brought in. (Could be some mod changing the environment somehow, could be your webserver, I'm not sure).

Sorry I can't be of more help than that, but that's what I'd have to do in your situation to find out why that is happening and fix this behaviour.. on our server it sticks with / all the time (as it should do).

All the best..

Conor
ceon

1 Feb 2010, 5:31 PM
#1077
jerry5763837 avatar

jerry5763837

Zen Follower

Join Date:
May 2008
Posts:
261
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

hello, Conor,

May i ask you another question about rewrite?

By adding table through phpMyadmin, is it possible to rewrite
link
https://www.example.com/category-one?&sort=20a&page=2
to
https://www.example.com/category-one-page-2

i tried to add table by phpMyadmin, but failed.
settings are as follows:

main page: index
query_string_parameters: cPath=3&sort=20s&page=2

thanks for your comments.:smile:

1 Feb 2010, 6:10 PM
#1078
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

That all looks okay. Which means it's probably something custom on your server I'm afraid.

You should be able to manually trace this by randomly outputting the contents of the server variables (using var_dump) and seeing where the index.php?main_page is being brought in. (Could be some mod changing the environment somehow, could be your webserver, I'm not sure).

Sorry I can't be of more help than that, but that's what I'd have to do in your situation to find out why that is happening and fix this behaviour.. on our server it sticks with / all the time (as it should do).

All the best..

Conor
ceon

Thanks for looking. I'll do the dump. It funny cus the template references DIR_WS_CATALOG which is configured to / in my config file.. crazy...

1 Feb 2010, 7:00 PM
#1079
simonbbc avatar

simonbbc

New Zenner

Join Date:
Apr 2009
Posts:
41
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

So am I right in thinking that old pages that are linked from external sites will still be handled by the module so that they resolve to correct page???
and
that canonical links will be added to the site once this is installed?

Simonbbc

1 Feb 2010, 7:39 PM
#1080
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

new2u:

Thanks for looking. I'll do the dump. It funny cus the template references DIR_WS_CATALOG which is configured to / in my config file.. crazy...

That eliminates that as a source of the problem.

YOu probably have hardlinks somewhere which reference index.php?main_page=index and google is picking up on them.

You also might simply have old google etc. links linking to index.php?main_page=index and it'll take time for them to disappear and to have only the / link represent the home page.

I'm afraid there's simply a few ways this could happen and they're all site specific, not natural behaviour caused by the module itself so I can only wish you luck in sorting this out.

It's not a massive deal though I must say, but I'm a bit of a perfectionist too and I personally can understand why a wee niggle like this would be something you'd want to get off the back of your mind! :) (Plus it may well be better to not have a duplicate link). Anyway... :)

All the best...

Conor
ceon