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

Ceon URI Mapping (SEO)

Locked

Views: 472,325

Results 1,221 to 1,240 of 2,913
This thread is locked. New replies are disabled.
11 Mar 2010, 7:32 PM
#1221
damiantaylor avatar

damiantaylor

Zen Follower

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

Ceon URI Mapping (SEO)

Hi all!
I have this mod working perfectly on my test site but when I move it over to my live site it doesn't work.

I have simply FTP'd all my files from my test site to my PC then FTP'd them all up to my live server. Then I backed up the database and imported it to the live server.
Everything seems to work perfectly except for URI mapping. When I switch it off in admin all the links work, if I switch it on I get page not found.

Is there something in configuration that I've missed or is there some server setting I need to check/change?
I've had a look at the data in the URI tables in the database and everything looks ok. There's no references to my test server anywhere as far as I can see.

If anyone can help I'd be really grateful. It's the only thing that's stopping me going live :)

11 Mar 2010, 9:18 PM
#1222
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)

Dunno about you, but the paths in my .htaccess file are different for my live sites versus the development site.. So when I move a site from dev to live, I usually have to adjust any files which contain file location/path data (configure.php, .htaccess, etc)

Dev - http://www.mysite.com/*directory_name
*
Live - http://www.theirsite.com

is this possibly the case for you??

damiantaylor:

Hi all!
I have this mod working perfectly on my test site but when I move it over to my live site it doesn't work.

I have simply FTP'd all my files from my test site to my PC then FTP'd them all up to my live server. Then I backed up the database and imported it to the live server.
Everything seems to work perfectly except for URI mapping. When I switch it off in admin all the links work, if I switch it on I get page not found.

Is there something in configuration that I've missed or is there some server setting I need to check/change?
I've had a look at the data in the URI tables in the database and everything looks ok. There's no references to my test server anywhere as far as I can see.

If anyone can help I'd be really grateful. It's the only thing that's stopping me going live :)

12 Mar 2010, 12:02 AM
#1223
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

damiantaylor:

I have simply FTP'd all my files from my test site to my PC then FTP'd them all up to my live server. Then I backed up the database and imported it to the live server.
Everything seems to work perfectly except for URI mapping. When I switch it off in admin all the links work, if I switch it on I get page not found.

It sounds like you have forgotten to upload a .htaccess file or the new server isn't configured to load .htaccess files, therefore making it redundant at present?!

Check the file is uploaded and if so, check that your server's Apache webserver has the appropriate AllowOverides directive to allow the loading of .htaccess files.

Hope that helps!

All the best...

Conor
ceon

12 Mar 2010, 12:10 AM
#1224
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Mike,

Glad you like the module, thanks for the nice comments!

MMCDOO:

HeI am having the problem Gerjan describe below where the who's online in tools displays something like:/includes/templates/browntemplate/images/TopPanelText1.gif,

Unfortunately I don't use the who's online functionality so I don't ever see this problem myself. I can't see how it would happen either, I don't know why image files would be tracked by who's online functionality!

I'm wondering if the who's online functionality can't cope with static URIs? I can't think why it would record images.. are you sure your first rewrite rule isn't causing this? Try removing it and only using the URI Mapping rule and see what happens!

MMCDOO:

PS I've seen it but forgot where--Where is the paypal link to buy you a pint or two?

Umm, I don't think I'm allowed to say here! :|

All the best...

Conor
ceon

12 Mar 2010, 12:32 AM
#1225
mmcdoo avatar

mmcdoo

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi Mike,

are you sure your first rewrite rule isn't causing this? Try removing it and only using the URI Mapping rule and see what happens!

ceon

Thanks for the quick response, I tried removing the first rewrite rule, no luck.
Here is what I see when looking at the Who's online:
Online ID Full Name
Asc Desc IP Address
Asc Desc Session
Asc Desc Entry Time
Asc Desc Last Click Time
Asc Desc Last URL Viewed
Asc Desc
00:10:43 0 ¥Spider 67.195.115.249 18:09:51 18:10:52
Time Since Clicked:
00:09:42 ago Session ID:
Host: b3090879.crawl.yahoo.net
User Agent: Mozilla/5.0 (compatible; Yahoo! Slurp/3.0; http://help.yahoo.com/help/us/ysearch/slurp)
/daylily-catalog/all-daylilies/ferengi-gold?language=en

00:01:48 0 ¥Guest 75.109.50.197 18:18:46 18:18:51
Time Since Clicked:
00:01:43 ago Session ID: ce9d145791d0f69cf37043b5e2524838
Host: cdm-75-109-50-197.asbnva.dh.suddenlink.net
User Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10
/includes/templates/browntemplate/images/TopPanelText1.gif

00:01:45 0 ¥Guest 75.109.50.197 18:18:49 18:18:49
Time Since Clicked:
00:01:45 ago Session ID: 06616725621a56cf971ec676011799e1
Host: cdm-75-109-50-197.asbnva.dh.suddenlink.net
User Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10
/daylily-catalog/favicon.ico

00:00:12 0 ¥Guest 75.109.50.197 18:20:22 18:20:24
Time Since Clicked:
00:00:10 ago Session ID: d239e37651610b1855fd660f055ae2e1
Host: cdm-75-109-50-197.asbnva.dh.suddenlink.net
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.4; Mozilla/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
/includes/templates/browntemplate/images/TopPanelText1.gif

The spider usually apears correctly unless it is crawling a linked product through a subcategory- even then its almost right. Only human guests get the template directory. It really is no big deal though. Thanks for your help.

I'll find that paypal link again.

Mike

12 Mar 2010, 12:58 AM
#1226
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

MMCDOO:

Thanks for the quick response

Actually, that was quite a long time to respond for me - I haven't been on the computer much recently! You must get very slow responses from other people if you thought that was quick! :|

I just looked at the whos_online.php function file and it simply records the REQUEST_URI.

Your rewrite rule omits any URIs ending in a 2 to 4 character extension from being rewritten and therefore processed by Ceon URI Mapping.

However the fact that whos_online is recording that path means that it is being processed.

I couldn't think of how this could be but computers don't do anything at random so I tried going to the URI recorded against your human visitor.

What I saw made me realise what is going on..

If you visit

http://www.mrfancyplantsnursery.com/includes/templates/browntemplate/images/TopPanelText1.gif

You'll get a 404!

Same if you visit the path to the non-existent favicon.ico:

http://www.mrfancyplantsnursery.com/daylily-catalog/favicon.ico

So something on your server is actually rewriting URIs behind the scenes to show a 404 page when a file isn't found.

The actual calling of this 404 page must be then being caught by the rewrite rule for Ceon URI Mapping and processed by Zen Cart.. meaning that the URI is then recorded by Zen Cart's who's online functionality.

So we now have a decent theory about what's happening!

You need to disable the 404 functionality on your site which attempts to display a custom 404 page for missing images. Or you need to exclude this page from the Ceon URI Mapping rewrite rule.

That should then mean that no attempt will be made to load the Zen Cart/URI Mapping engine to process the URI and therefore mess up your who's online list! :)

I should also point out that you should set a base href on your site or change the path to your favicon.ico file to be relative to the root of your site (put the full path to the file in your template).. obviously you don't have a "favicon.ico" file in every "directory" so paths like "/daylily-catalog/favicon.ico" will never be found!

All the best...

Conor
ceon

12 Mar 2010, 3:49 AM
#1227
mmcdoo avatar

mmcdoo

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Thanks Connor!!!

Turning off the 404 did the trick. Thanks also for the favico.ico tip. I hadn't noticed that.

Have a good one.

Mike

12 Mar 2010, 10:14 AM
#1228
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Mike,

MMCDOO:

Turning off the 404 did the trick. Thanks also for the favico.ico tip. I hadn't noticed that.

Have a good one.

Out of interest, in case anyone else asks, how did you "turn off 404"?

Thanks!

All the best...

Conor
ceon

12 Mar 2010, 1:40 PM
#1229
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)

conor:

Hi Mike,

Out of interest, in case anyone else asks, how did you "turn off 404"?

Thanks!

All the best...

Conor
ceon
My question EXACTLY!!!:laugh:

12 Mar 2010, 2:57 PM
#1230
mmcdoo avatar

mmcdoo

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi Mike,

Out of interest, in case anyone else asks, how did you "turn off 404"?

Thanks!

All the best...

Conor
ceon

In Zencart admin under configure>mystore I had Missing Page Check set to display page not found. I turned this to off and visitors page addresses started showing correctly.

Thanks again for your help.

12 Mar 2010, 3:51 PM
#1231
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Mike,

MMCDOO:

In Zencart admin under configure>mystore I had Missing Page Check set to display page not found. I turned this to off and visitors page addresses started showing correctly.

Thanks again for your help.

Oh, that's not what I was expecting you to come back with.

You shouldn't disable that check.. what we want to do is to stop Zen Cart being loaded at all when your server finds that an image file is missing.

It shouldn't load Zen Cart when the image isn't found.. and Zen Cart is most likely being loaded because your server is redirecting to 404 page internally, the URI of which is then being "caught" by the URI Mapping rewrite rule and loading ZC.

What we need to do is to find out what is going on behind the scenes.. i.e. what 404 URI is being redirected to by your server.

Could you please post me privately (via e-mail not PM) your server's httpd.conf file so I can see what 404/error handling settings you have in place.

Thanks.

All the best...

Conor
ceon

12 Mar 2010, 11:56 PM
#1232
new2u avatar

new2u

Zen Follower

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

Re: Ceon URI Mapping (SEO)

Heard 3.4 will be released soon. Can't wait!

14 Mar 2010, 3:02 PM
#1233
hica avatar

hica

New Zenner

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

Re: Ceon URI Mapping (SEO)

conor:

the module has no support whatsoever for URI Mappings for attributes, only for products.
Do you suggest that the module doesn't suit for websites containing products with plenty of attributes?

My issue:
I have Zen Cart 1.3.8a + Ceon URI Mapping module 3.2.4 installed. Everything works fine before the URI Mapping module is enabled. After the module is in function, those products with many attributes cannot be added to shopping cart, while other products with a simple attribute have no such problem.

p.s. I have studied this thread (more than 120 pages), examed .htaccess file, and have includes/functions/html_output.php modified properly.

:dontgetit

14 Mar 2010, 3:15 PM
#1234
hica avatar

hica

New Zenner

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

Re: Ceon URI Mapping (SEO)

Question 1: Is the module suitable for my site (having products with many attributes)?
Question 2: Codes of all product pages of my site have been customed, where the form doesn't make use of the zen_href_link function. If this might be the reason, how shall I handle with this?

Many thanks!

14 Mar 2010, 4:19 PM
#1235
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

hica:

Question 1: Is the module suitable for my site (having products with many attributes)?

The module does not affect the way Zen Cart works, it is 100% compatible Zen Cart and any with any module that can handle static URIs.

hica:

Question 2: Codes of all product pages of my site have been customed, where the form doesn't make use of the zen_href_link function. If this might be the reason, how shall I handle with this?

This is the reason you are having problems. You must use zen_href_link for all links on your site.. otherwise you must hard-code any links to a page which you have created a URI Mapping for with the exact same URI as the mapping.

It's easier to just change any hard-coded links to use the zen_href_link function as this is a "dynamic" way to output URIs and will therefore always output the correct, up to date URI. Hard-coding URIs in your templates and core files is NOT A GOOD IDEA! :)

So change your form links back to using zen_href_link and you should be fine.

All the best...

Conor
ceon

15 Mar 2010, 11:39 AM
#1236
dilani_ruwanmali avatar

dilani_ruwanmali

New Zenner

Join Date:
Feb 2010
Location:
Sri_lanka
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

hi,
i am using zencart 1.3.8a .i want to use ceon url mapping to my website.i am strcut with Apache rewritable rule.this is my .htacces
file.Do i need to ask for any changes from my server people .
:oops::oops::oops::oops::oops:


RewriteEngine On

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


when i used this it gives internel server error.plz help me on this:no:

16 Mar 2010, 10:44 AM
#1237
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Dilani_Ruwanmali:

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

RewriteRule (.*) /index.php?%{QUERY_STRING} [L]

Try changing the above to

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

All the best...

Conor
ceon

16 Mar 2010, 10:59 AM
#1238
hica avatar

hica

New Zenner

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

Re: Ceon URI Mapping (SEO)

conor:

This is the reason you are having problems. You must use zen_href_link for all links on your site.
...
So change your form links back to using zen_href_link and you should be fine.

All the best...

Conor
ceon

:clap: I followed your suggest and it works now! Thank Conor for your great support :yes:

And here comes the 'second season' of the issue:
For some products with file-upload option, it works fine if there's file uploaded. However if this file-upload option is not used, product will not be added to cart. It shows "?&number_of_uploads=1&action=add_product" in the link, where number_of_uploads should be zero as I guess.

So, my question: where to contral the value of number_of_uploads ?
I know this should not be any error of CEON module but my coding... would you give me some hint on this? :blink:

16 Mar 2010, 11:06 AM
#1239
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

hica:

I followed your suggest and it works now! Thank Conor for your great support

I'm glad you like the software! :)

hica:

So, my question: where to contral the value of number_of_uploads ?

I'm afraid I've never used that aspect of Zen Cart. It might be something you set in the attributes controller where you have to make sure that the upload isn't "required".

I hope that helps!

Obviously as you say this isn't anything to do with the URI Mapping so if you're still having trouble you'll want to post a new thread on the forum to get help.

All the best...

Conor
ceon

17 Mar 2010, 4:25 AM
#1240
dilani_ruwanmali avatar

dilani_ruwanmali

New Zenner

Join Date:
Feb 2010
Location:
Sri_lanka
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

hi coner,
still its not working,it gives 500 internal server error.i am really new to this rewritable thing.Is there any other things to do to complete the Apache rewritable rule.:wacko::cry::cry::cry: