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

Ceon URI Mapping (SEO)

Locked

Views: 472,100

Results 2,801 to 2,820 of 2,913
This thread is locked. New replies are disabled.
23 Jun 2011, 13:21
#2801
rebelman avatar

rebelman

New Zenner

Join Date:
Nov 2010
Posts:
53
Plugin Contributions:
0

Ceon URI Mapping (SEO)

rebelman:

Hi all,
I have just installed this add-on and have read all the instructions from top to bottom but it seems I am still having problems with the htaccess file, copy of my htaccess log shown below:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^nameyourgift.ie$ [NC]
RewriteRule ^(.*)$ http://www.nameyourgift.ie/$1 [R=301,L]

Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])

RewriteCond %{REQUEST_URI} !.[a-z]{2,5}$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/MYADMINFOLDER [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]

<FilesMatch ".*.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF|xsl|XSL)$">
Order Allow,Deny
Allow from all
</FilesMatch>

IndexIgnore /

> 
> I have tried various combinations of the above code but without success.  At the moment I have removed the last RewriteRule (i.e. index.php) as when its included I get "Unable to display page".  My site is working fine, just can't get the Static URI working!  btw the first redirect rule i.e. redirecting non www to www address is working  fine.  I appreciate any insight of what I could be doing wrong.
> Thanks
> Rebelman

The latest from my host is that the above redirect is causing everything to try and go to /htdocs/usr.  They say it is probably some internal configuration in Zen cart that is causing this.  Does anyone know how this can occur?
23 Jun 2011, 14:19
#2802
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

rebelman:

The latest from my host is that the above redirect is causing everything to try and go to /htdocs/usr. They say it is probably some internal configuration in Zen cart that is causing this. Does anyone know how this can occur?

No.

Try putting a slash in front of index.php and see if that works. If not you might have to pay someone to help you sort out your server as that rule should work.

All the best...

Conor
ceon

23 Jun 2011, 14:21
#2803
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

xergos055:

I install the module and is not work :( .

The module **always **works when it is installed properly.

xergos055:

I made al the instructions from the doc folder .. recheck for 10 times.
I reinstal a fresh zencart and templates. Nothing change :(.
The server is linux ...
In my admin site all is work perfect but the links is the same.

Whay !!! Please help !!!

You ahve to go and create the mapping by going into each category/product and clicking "Update".

You probably missed that part of the docs!

Hopefully that's all this is and you'll be sorted once you generate mappings for each category/product.

All the best..

Conor
ceon

23 Jun 2011, 14:26
#2804
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping (SEO)

conor:

Hi,

Yes.. read the section of the docs about rewrite rules and copy and paste an example rewrite rule and modify it as instructed in the documentation.

Told you I needed better docs. :(

All the best...

Conor
ceon

Told you I needed better docs. :(Yes I guess For some people You might need them........:unsure:

23 Jun 2011, 14:43
#2805
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I've sorted out the EZ pages issue and they work fine..(I downloaded the Filezilla ftp addon :smile:)

..now I can add mapping to only a few of my products within categoires but I can't add it to the rest...:dontgetit

Any idea why? Very strange..I've uploaded the files again..

23 Jun 2011, 14:58
#2806
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Has anyone already written the code to integrate with the SitemapXML mod? Google Webmaster Tools indexed some of my URLs in the sitemap, but it has now giving an error that it has stopped following my URLs because of the 301 redirects. So I need to create the sitemap with the static URLs.

I would imagine it's just a matter of doing some select queries on the sitemapxml tables. I'm just rusty and thought I'd check here before I get into it.

23 Jun 2011, 15:12
#2807
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

fakeDecoy:

Has anyone already written the code to integrate with the SitemapXML mod? Google Webmaster Tools indexed some of my URLs in the sitemap, but it has now giving an error that it has stopped following my URLs because of the 301 redirects. So I need to create the sitemap with the static URLs.

Many stores are already using this just fine with Ceon URI Mapping. It is fully compatible with any store that only has one language.

If you are getting redirects you need to change "**Generate language_id for default language" **to false.

You should probably also change "**Use Existing Files" **to false (to save deleting the files to have them regenerated).

In v4.0.0 these instructions will either be part of the installation procedure, or else I might update Sitemap XML to be compatible with the greatly enhanced language support Ceon URI Mapping adds to a store.

All the best...

Conor
ceon

23 Jun 2011, 15:39
#2808
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Just to add...I either have space to add
URI Mapping:

(this is only on a handfull of products)

or at the bottom I have space for the following

Products URL:

Any idea why I can't add in URI Mapping on all products?

The EZpages and categories all work fine :smile:

Great Module:bigups: Just want to get this final thing sorted.

Thanks

23 Jun 2011, 15:42
#2809
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

pb4:

Any idea why I can't add in URI Mapping on all products?

Your products must use different product types but you have only modified the core files in the admin/includes/modules/PRODUCT_TYPE folders for the default product type. You need to modify all the collect_info and preview_info PHP files.

And to think today's supposed to be my day off... :lookaroun

All the best...

Conor
ceon

23 Jun 2011, 15:45
#2810
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Oh sorry Conor :blush:

Thank you for your time..I'll check that out..

23 Jun 2011, 16:01
#2811
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

Many stores are already using this just fine with Ceon URI Mapping. It is fully compatible with any store that only has one language.

If you are getting redirects you need to change "**Generate language_id for default language" **to false.

You should probably also change "**Use Existing Files" **to false (to save deleting the files to have them regenerated).

In v4.0.0 these instructions will either be part of the installation procedure, or else I might update Sitemap XML to be compatible with the greatly enhanced language support Ceon URI Mapping adds to a store.

Thanks for the quick reply!

I had **Generate language_id for default language" ** set to false. I just set **Use Existing Files" ** to false as suggested. The new sitemap files still have URLs in the dynamic fomat like this:

http://www.mysite.com/index.php?main_page=index&cPath=195

It sounds like you're saying these should already be created in the static mapped format without need for code modification of the SitemapXML mod?

Perhaps I don't have the URI Mapping mod configured properly in some other way. In case it's a symptom, all the links created by zencart on my store are links to the dynamic URLs and are only redirected to the mapped URL on click. Is that normal?

23 Jun 2011, 17:01
#2812
rebelman avatar

rebelman

New Zenner

Join Date:
Nov 2010
Posts:
53
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

No.

Try putting a slash in front of index.php and see if that works. If not you might have to pay someone to help you sort out your server as that rule should work.

All the best...

Conor
ceon

Thanks Conor, yes putting the slash in front of the index.php has resolved this issue (i.e. I can now view my site!). However, when I click on one of the test URI categories (GIFTS TEST) I get "Unable to Display Page"! All other categories (the ones that don't have URI enabled) work fine. My site is nameyourgift.ie - click on GIFTS TEST (last category on your left) and you will see my problem! Any clues what could be causing this?

Thanks a mill for helping me with this.

23 Jun 2011, 17:37
#2813
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

fakeDecoy:

It sounds like you're saying these should already be created in the static mapped format without need for code modification of the SitemapXML mod?

Yes, that's right.

fakeDecoy:

Perhaps I don't have the URI Mapping mod configured properly in some other way. In case it's a symptom, all the links created by zencart on my store are links to the dynamic URLs and are only redirected to the mapped URL on click. Is that normal?

Nope, and that explains things. You need to modify includes/functions/html_output.php.. you haven't actually finished installing the software! Merge the Ceon URI Mapping code from the sample modified core file in the distribution with the html_output.php file on your site and the sitemap will use the static URIs.

All the best...

Conor
ceon

23 Jun 2011, 17:39
#2814
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

rebelman:

However, when I click on one of the test URI categories (GIFTS TEST) I get "Unable to Display Page"!

Sorry, I don't know what's wrong there... you shouldn't get a 404 with the rewrite rule you posted, at the very least you should get a Zen Cart 404.

All the best...

Conor
ceon

23 Jun 2011, 19:28
#2815
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Nope, and that explains things. You need to modify includes/functions/html_output.php.. you haven't actually finished installing the software! Merge the Ceon URI Mapping code from the sample modified core file in the distribution with the html_output.php file on your site and the sitemap will use the static URIs.

You're a genius! I completely missed the core overrides step of the install. It's interesting that it has worked okay without it, but that's cool that when fully installed it will use entirely static URLs.

23 Jun 2011, 20:00
#2816
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

fakeDecoy:

You're a genius! I completely missed the core overrides step of the install. It's interesting that it has worked okay without it, but that's cool that when fully installed it will use entirely static URLs.

Oops, I guess I didn't miss all those files after all. Just the few core modified catalog files. Anyway, I just finished it, and that did the trick. Beautiful!

24 Jun 2011, 08:48
#2817
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

fakeDecoy:

Just the few core modified catalog files. Anyway, I just finished it, and that did the trick. Beautiful!

Yes, I knew it was probably just the catalog files as you would have noticed the lack of admin functionality otherwise, but thought it better to get you to check all the files. It's easy to miss one.

I wish core modifications weren't necessary as it's a huge support burden on Ceon.

v4.0.0 now has a configuration check which will check every file to make sure the code modifications are in place in all files.. should help prevent this sort of mistake in future! :)

fakeDecoy:

It's interesting that it has worked okay without it, but that's cool that when fully installed it will use entirely static URLs.

It was written that way on purpose.. I always write software to fall back to the best situation possible. So if something is amiss the software will do its best to remedy or deal with the situation. :)

That costs a a little bit in terms of code efficiency but for such a general module as this, I think that's the appropriate behaviour "as standard".

Glad you're sorted now.

All the best...

Conor
ceon

25 Jun 2011, 12:20
#2818
rebelman avatar

rebelman

New Zenner

Join Date:
Nov 2010
Posts:
53
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

No.

Try putting a slash in front of index.php and see if that works. If not you might have to pay someone to help you sort out your server as that rule should work.

All the best...

Conor
ceon

Incase anybody else are having the same problem as me...I got this resolved by inserting " Rewritebase / " under RewriteEngineOn and before any of your rewrites in your htaccess file. This command strips the actual physical path from the redirect (pity my host provider didn't see this as it would have saved myself 2 days in trying to resolve this issue!!)

25 Jun 2011, 15:02
#2819
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

rebelman:

Incase anybody else are having the same problem as me...I got this resolved by inserting " Rewritebase / " under RewriteEngineOn and before any of your rewrites in your htaccess file. This command strips the actual physical path from the redirect (pity my host provider didn't see this as it would have saved myself 2 days in trying to resolve this issue!!)

Thanks for letting people know that.. that's an unusual server setup you have, to require that command.

Just glad you're sorted.

Enjoy the rest of your weekend.

All the best...

Conor
eon

28 Jun 2011, 13:56
#2820
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi,

I seem to have this working now apart from on a few pages such as the about us page and contact us page etc. (Not EZpages or product pages).

Why would these not be working right?

Thanks