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

Ceon URI Mapping (SEO)

Locked

Views: 472,101

Results 401 to 420 of 2,913
This thread is locked. New replies are disabled.
26 Jul 2009, 10:40
#401
pharry avatar

pharry

Zen Follower

Join Date:
Jun 2009
Posts:
131
Plugin Contributions:
0

Ceon URI Mapping (SEO)

Conor, can I use htaccess 301 redirect to redirect my existing site pages to my new site pages? The new site pages having been named with the Ceon URI mapping tool?

I cant' get it to work - I don't get an error, but I don't get redirected, either. So I thought I'd check here first, and see if maybe this is the issue.

Here's a line in my htaccess file:
redirect 301 /acatalog/Scrapbook_Supplies_Stamping_Supplies.html http://www.apeekintoyesterday.com/store/send-payment-only

26 Jul 2009, 11:20
#402
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

pharry:

Conor, can I use htaccess 301 redirect to redirect my existing site pages to my new site pages? The new site pages having been named with the Ceon URI mapping tool?

The module allows you to redirect old URIs to new ones by entering "historical" URIs manually in the database.

For the link you described above:

The URI mapping to be mapped from should be entered in the uri field. (Remember to begin the URI with a slash ‘/’):

/acatalog/Scrapbook_Supplies_Stamping_Supplies.html

The number representing the language ID this URI mapping applies for should be entered in the language_id field.

The current_uri field should be set to “0” to make this a “historical” URI.

The Zen Cart page to be mapped to should be entered in the main_page field. For the category page this is:

index

The associated_db_id should be entered. This is the ID of the category, which seems to be:

558

The date/time this URI mapping was added should be set in the date_added field (or just use the “NOW()” SQL function).

The* alternate_uri* and query_string_parameters fields are not used, they must be left as “NULL”.

That should be all you need to know to get this working. The URIs will redirect using a 301 to the "current" URI (/store/send-payment-only).

All the best...

Conor
ceon

26 Jul 2009, 15:26
#403
pharry avatar

pharry

Zen Follower

Join Date:
Jun 2009
Posts:
131
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Conor, I'm a bit lost. But I also don't think I asked my question correctly. I have an existing site in production. Once I bring my ZC live, I need to redirect my old site to the new. I was going to build an .htaccess file of all the old pages with a mapping to the ZC pages. This would redirect search engines and customers to my new pages if they try to access my existing site.

If you answer still applies, where in the database do I enter this? I don't see a place under the Ceon tool under "modules", or in the catalog pages.

Thanks!

26 Jul 2009, 15:53
#404
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

pharry:

Conor, I'm a bit lost. But I also don't think I asked my question correctly.

You did, I understood exactly what you wanted to do!

pharry:

If you answer still applies, where in the database do I enter this? I don't see a place under the Ceon tool under "modules", or in the catalog pages.

It does indeed. You have to manually add records to the database. You can use software called PHPMyAdmin to do this.. it's very easy to use. I can't teach you how to use it though, that's something you'll have to look up for yourself. There are plenty of guides on the internet on how to use it - and if you're going to run a website it's a good skill to have! :)

Hope that helps!

All the best...

Conor
ceon

26 Jul 2009, 16:27
#405
pharry avatar

pharry

Zen Follower

Join Date:
Jun 2009
Posts:
131
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Conor, now I'm confused about the overall logistics, or timing, of this.

Using the .htacess approach, I was just going to move that one file to the server, and that would "flip the switch" and make my ZC site live, and retire my other site.

If I build it in the database via myphp, I'm going to get into an issue with how to "flip the switch" so at one point in time the old goes away and the new is in its place.

26 Jul 2009, 16:47
#406
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

pharry:

Conor, now I'm confused about the overall logistics, or timing, of this.

Using the .htacess approach, I was just going to move that one file to the server, and that would "flip the switch" and make my ZC site live, and retire my other site.

How? The databases would be different! (I don't want an answer to that question.. I'm just pointing out that you won't just be changing a .htaccess file!)

When you switch from using your old site to your new one, the new one should have its own database.

This isn't really appropriate talk for this thread though, it's not to do with the module but your server switchover. I'd suggest starting a new thread if you want to discuss this further in public.

All the best...

Conor
ceon

30 Jul 2009, 14:04
#407
nidkolio avatar

nidkolio

New Zenner

Join Date:
May 2009
Posts:
55
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi there,
Im trying to install this mode because it looks very helpful. However i have some troubles with it.
When i follow installation instruction when it is done, i got blank page in when i try to access /admin.
I put back old files and saw that when this file is placed the blank page issue appear : admin/includes/functions/extra_functions/ceon_uri_mapping.php
Any ideas why this file make admin area to crash like this?
Thank you in advance

30 Jul 2009, 15:33
#408
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

nidkolio:

Any ideas why this file make admin area to crash like this?

You can't just put one file back and expect things to work! :)

That file loads in a file which loads in another file, which in turns loads more..

If any of the files are missing Zen Cart will fail with a PHP error. As Zen Cart disables error reporting by default, this will result in a blank page being displayed.

You must upload all of the files for the module to work, you cannot be selective.

Hope that helps!

All the best...

Conor
ceon

30 Jul 2009, 15:47
#409
nidkolio avatar

nidkolio

New Zenner

Join Date:
May 2009
Posts:
55
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

You can't just put one file back and expect things to work! :)

That file loads in a file which loads in another file, which in turns loads more..

If any of the files are missing Zen Cart will fail with a PHP error. As Zen Cart disables error reporting by default, this will result in a blank page being displayed.

You must upload all of the files for the module to work, you cannot be selective.

Hope that helps!

All the best...

Conor
ceon

All files was modified, i did not place only this file;-)
After installation the admin was blank. i found that if i remove only this file admin area is showed up again. all other files from your add-on is at the server.
So i tough that there is some error or something wrong with this file...
I will try to place your files instead of change my files, in this case i will see if i did something wrong during instalation...

30 Jul 2009, 15:55
#410
nidkolio avatar

nidkolio

New Zenner

Join Date:
May 2009
Posts:
55
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

i just tried to copy the files from archive to the server not to change my files. The result is the same... blank admin page.
i forgot to mention that i use 1.3.8a

Thank you for replay

30 Jul 2009, 16:32
#411
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

nidkolio:

i just tried to copy the files from archive to the server not to change my files. The result is the same... blank admin page.
i forgot to mention that i use 1.3.8a

Thank you for replay

You need to find out what is wrong on your server that is causing the blank admin file.

It is possibly that one or more of the files isn't uploading properly or that there is something wrong with your server's configuration. I'm afraid I can't help you with that if it is that.

You can find out what error message is being generated by following the instructions on this page:

https://www.zen-cart.com/tutorials/index.php?article=82

Let me know what error message is being output and causing the blank page. If you aren't sure about PHP errors etc. you may need to get your web developer to check this out for you.

Hope that helps!

All the best...

Conor
ceon

30 Jul 2009, 17:08
#412
nidkolio avatar

nidkolio

New Zenner

Join Date:
May 2009
Posts:
55
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

You need to find out what is wrong on your server that is causing the blank admin file.

It is possibly that one or more of the files isn't uploading properly or that there is something wrong with your server's configuration. I'm afraid I can't help you with that if it is that.

You can find out what error message is being generated by following the instructions on this page:

https://www.zen-cart.com/tutorials/index.php?article=82

Let me know what error message is being output and causing the blank page. If you aren't sure about PHP errors etc. you may need to get your web developer to check this out for you.

Hope that helps!

All the best...

Conor
ceon

i will try to figure it out...
Thanks for your help

p.s.OK i got it work! i tryed at other server and it seams it was from server configurations after all...
Thank you for your help!

30 Jul 2009, 18:14
#413
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

nidkolio:

i will try to figure it out...
Thanks for your help

p.s.OK i got it work! i tryed at other server and it seams it was from server configurations after all...
Thank you for your help!

I'm glad you got it working and that you like the module. Enjoy!

All the best...

Conor
ceon

31 Jul 2009, 19:56
#414
jbittner avatar

jbittner

New Zenner

Join Date:
Jul 2009
Posts:
4
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I am using the SEO for zen cart.
When it auto adds a category it works great.
It also auto adds a product fine.
Everything works except I find one error.

I select a category, then select a product
and it goes to the product page. On the
product page it displays an image in the
upper left side of the product area.
Above that image is a link to the category.
The category link is wrong. It displays
the category link as:

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

It does this only when SEO is applied
to a product and the product page is displayed.
This link is correct if the product is
not using an SEO link.

Do you have a fix for this?

I'm using Zen Cart 1.3.8a

31 Jul 2009, 20:00
#415
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

jbittner:

Do you have a fix for this?

Hmm, that does look like a bug.

I'll look into sometime next week.

Have a nice weekend!

All the best..

Conor
ceon

01 Aug 2009, 16:49
#416
doug949 avatar

doug949

New Zenner

Join Date:
Sep 2008
Posts:
15
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Conor, great contribution! I installed it and it works very well.

Now here is my problem. My Zen Cart is installed in the root directory (of an Apache) server.

I want to install a completely separate website in its own directory under the root. So I created the folder "mynewsite" and pointed mynewsite.com to this directory.

This works fine if I delete the htaccess file I installed with Ceon URI Mapping (SEO). However, when I do this, Ceon URI Mapping (SEO) breaks.

Needless to say, my problem seems to be in the htaccess file. I've searched the web trying to find a solution; but have had no luck.

Do you know how I should modify the htaccess file so that incoming http requests to mynewsite.com are ignored by Ceon URI Mapping (SEO)?

For reference, below is what I currently have in my htaccess file.

Thanks and best regards,

Doug

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 bad2min directory

RewriteCond %{REQUEST_URI} !^/admin.* [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors.* [NC]

Don't rewrite site manager directories

RewriteCond %{REQUEST_URI} !/pma.* [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]

01 Aug 2009, 17:41
#417
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

doug949:

Conor, great contribution! I installed it and it works very well.

Thanks, I'm glad you like it!

doug949:

Needless to say, my problem seems to be in the htaccess file. I've searched the web trying to find a solution; but have had no luck.

Did you look at the FAQs in the docs? :)

"The module is blocking access to part of the site (e.g. the site's control panel)!"

This links to the section you need:

"Adding exceptions to the rule to prevent particular addresses (e.g. Control Panels etc.) being handled by Zen Cart"

Basically, you should add the following to your .htaccess file:

# Don't rewrite mynewsite's directory
RewriteCond %{REQUEST_URI} !/mynewsite.* [NC]                     
```**

before **the actual Rule declaration:

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

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


Enjoy the rest of your weekend.

All the best...

Conor
[ceon](http://dev.ceon.net)
04 Aug 2009, 11:05
#418
allgiftsdirect avatar

allgiftsdirect

New Zenner

Join Date:
Feb 2007
Posts:
10
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I stumbled across this thread as I have been trying for some time to install an SEO mod with no success so far and decided to give this one a go.

I tried it on one of my smaller sites and it works great.

It was easy to install (i liked the way you split the install files into core and modified) and worked out of the box first time.

The only drawback is manually checking a box to tell the module to rewrite the URL. If I decide to change a category name then I have to go into every product in that category and tell it to rewrite the URL so it updates the category link.

On a small site this is not a problem but with hundreds of products on my main site it is a bit of a daunting prospect to implement.

If there was a way to update the category and every product in that category with a single click then I would have to vote it one of the best zen cart mods ever:smartalec:

I do like the move function however that allows rewriting when products are moved between categories as well as the old dynamic links still working and pointing to the newly named product links.

Sitemaps and google base links also update fine when using those zencart mods.

A great mod and the first URL writer I have managed to get working so thanks and well done!

04 Aug 2009, 11:14
#419
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

AllGiftsDirect:

I tried it on one of my smaller sites and it works great.

Thanks for the nice comments.. I'm glad you like the various features like updating URIs when moving products and maintaining a working historical record of previous URIs.. I'm pretty pleased with how it works too, but it's nice to feel all the work it took to write is appreciated! :)

AllGiftsDirect:

The only drawback is manually checking a box to tell the module to rewrite the URL.

Yes, the module was designed for new/small sites. It was initially focussed mainly on allowing store owners to have specific URIs for particular pages on their site, for the purposes of placing these on advertising literature. Obviously it has expanded into providing URI management for an entire site.

AllGiftsDirect:

On a small site this is not a problem but with hundreds of products on my main site it is a bit of a daunting prospect to implement.

Certainly! I'm writing another piece of software to allow managing URIs on large sites.. modifying the existing module presents too many potential problems, I'm already uncomfortable with the number of core files which have to be modified and don't want to store owners to have to modify any more as standard!

AllGiftsDirect:

A great mod and the first URL writer I have managed to get working so thanks and well done!

I'm glad you like it! :)

All the best...

Conor
ceon

04 Aug 2009, 13:09
#420
remoteone avatar

remoteone

Zen Follower

Join Date:
Jan 2009
Location:
Macclesfield, South Australia
Posts:
104
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hello Conor,
I've installed CEON SEO on my Windows localhost test machine.
Several of my Updated Core Files had been modified with the install of the AUSPOST and OZPOST mod's. The task was made easier by using WinMerge, but one still needs to carefully compare each file. It kind of reminded me of the old osCommerce that I abandoned long ago. Having said that, its good you separated out the Updated Core Files from the New.
Despite your very clear instruction the module won't work. All seems of in the Admin side. But if a page has a URI generated, the store returns the 404 error: Page not found on this server error.

Eg. The ezpage:
http://localhost/zc1/index.php?main_page=page&id=34
generates URI:
http://localhost/zc1/software
but no pages using URI will load when clicking the page link.
Same goes for Product pages.
Test Store is on /zc1/ and the Rewrite ON directive in
/zc1/.htaccess is:

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

Don't rewrite cPanel directories

RewriteCond %{REQUEST_URI} !/cpanel.* [NC]

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

RewriteRule (.*) zc1/index.php?%{QUERY_STRING} [L]
Hopefully I have done something wrong in .htaccess
Cheers.. any ideas?