-
Re: 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/st...d-payment-only
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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
-
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!
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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!
Quote:
Originally Posted by
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
-
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.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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
-
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
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
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...
-
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
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
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!
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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
-
Category link on Product Page is bad
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
-
Re: Category link on Product Page is bad
Hi,
Quote:
Originally Posted by
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
-
Re: Ceon URI Mapping (SEO) htaccess file issue
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]
-
Re: Ceon URI Mapping (SEO) htaccess file issue
Hi,
Quote:
Originally Posted by
doug949
Conor, great contribution! I installed it and it works very well.
Thanks, I'm glad you like it!
Quote:
Originally Posted by
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:
Code:
# Don't rewrite mynewsite's directory
RewriteCond %{REQUEST_URI} !/mynewsite.* [NC]
before the actual Rule declaration:
Code:
# 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
-
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!
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
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! :)
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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!
Quote:
Originally Posted by
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
-
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:
Quote:
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?
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
remoteone
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.
There was no choice but to write it the way I did.. you can understand why I don't want to make any more core modifications, things would become very unwieldy then and it takes enough hours each week to support this module! :)
Quote:
Originally Posted by
remoteone
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.
You have come up with your own custom RewriteRule. I'm afraid I'm not an expert on this.
You should either move the .htaccess file into the root of your store and use the example rule provided with the module, or you should try changing
Code:
RewriteRule (.*) zc1/index.php?%{QUERY_STRING} [L]
to
Code:
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
A guess would be that your server is looking for zc1/zc1/index.php as the .htaccess file is in the zc1 directory and refers to another zc1 subdirectory.
If that doesn't work, try the example rule shown in the instructions for Example rule for stores installed in a folder other than the root of the site, with the admin named “admin”, changing "shop" to "zc1".
Please note that the directory name should be your FINAL store's directory name as otherwise all your auto-generated URIs will have /zc1 at the start of them. I.e., you should test your store in the exact same subdirectory name as your final store (hence I recommend "shop" or "store" instead of "zc1").
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
That was some pretty fast typing there Conor. Thanks for the quick response.
OK, as per your examples:
1.With my .htaccess file located in the /zc1 directory (where index.php is located)
Quote:
RewriteEngine On
# ONLY rewrite URIs beginning with /zc1/
RewriteCond %{REQUEST_URI} ^/zc1/.* [NC]
# 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 editors directory
RewriteCond %{REQUEST_URI} !^/zc1/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]
Product URI generated example : /zc1/sony-ps3-ir-control/ps3ir-1000
Get "The requested URL /zc1/sony-ps3-ir-control/ps3ir-1000 was not found on this server."
2. With .htaccess file located in the / directory
Quote:
RewriteEngine On
# ONLY rewrite URIs beginning with /zc1/
RewriteCond %{REQUEST_URI} ^/zc1/.* [NC]
# 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 editors directory
RewriteCond %{REQUEST_URI} !^/zc1/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 (.*) zc1/index.php?%{QUERY_STRING} [L]
Product URI generated example : /zc1/sony-ps3-ir-control
Get "The requested URL /zc1/sony-ps3-ir-control/ps3ir-1000 was not found on this server."
Ive also tried many many many other less logical combinations. Alas none worked.
I restarted Apache and cleared the cache each test
Quote:
Originally Posted by
conor
Please note that the directory name should be your FINAL store's directory name as otherwise all your auto-generated URIs will have /zc1 at the start of them. I.e., you should test your store in the exact same subdirectory name as your final store (hence I recommend "shop" or "store" instead of "zc1").
Ive used "zc1" instead of "store" etc for a reason that now escapes me.
My Live store http://www.remoteone.com.au has the same name. Having the Test store a different folder to the Live store would indeed be more un-necessary trouble.
All the generated URIs have /zc1 at the start of them. would this normally be the case (ie "/store/generated_url_name") or should they normally generate as just "/generated_url_name"
Thanks
-
Re: Ceon URI Mapping (SEO)
Hi,
About to leave the office for the day..
Have you tried the second option you listed with
Code:
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
Quote:
Originally Posted by
remoteone
All the generated URIs have /zc1 at the start of them. would this normally be the case (ie "/store/generated_url_name") or should they normally generate as just "/generated_url_name"
No, they'll generate with the store's catalog prefix: /store/generated_url_name (in your case /zc1/generated_url_name.
Of course, you can just change them manually in the admin.
Hope that helps. Have a good evening!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Have you tried the second option you listed with
Code:
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
Yep, Ive been trying for hours. Double checked it, Still no worky w that combo.
Have a good day!
Cheers
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
remoteone
Yep, Ive been trying for hours. Double checked it, Still no worky w that combo.
The only other thing it can be is that your test site doesn't use .htaccess files.
I think you have overrides disabled.
Which means you'll either have to enable them and restart Apache or add the necessary rule in a VirtualHost directory and restart Apache.
All the best...
Conor
ceon
-
Category link on Product Page is bad
Conor said: > Hmm, that does look like a bug.
Does this bug exist on every website using the SEO plugin
or does it just affect people using 1.38a? Do you have any
idea when this bug might be fixed?
---------------------------------------------------------------------
>>
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
-
Re: Category link on Product Page is bad
Hi,
Quote:
Originally Posted by
jbittner
Does this bug exist on every website using the SEO plugin
or does it just affect people using 1.38a? Do you have any
idea when this bug might be fixed?
You're welcome to submit a patch yourself. Of course I'll try to get the time to fix it myself but time is something I don't have a lot of at the minute.
All the best...
Conor
ceon
-
Re: Category link on Product Page is bad
Hi,
Quote:
Originally Posted by
jbittner
I've taken a look at this and found a bug in Zen Cart's init_category_path.php file which causes this problem.
The product info display page uses two files to build the category listings, tpl_modules_category_icon_display.php and tpl_products_next_previous.php.
In tpl_modules_category_icon_display.php the category is being linked to using the query string parameter $_GET['cPath'], whereas in tpl_products_next_previous.php the same category is being linked to using the value of the $cPath variable as set up in init_category_path.php.
Since the product page for URI mapped pages only has a $cPath variable initialised by the init_category_path script but no $_GET['cPath'] variable initialised, the link to the category page gets broken.
Obviously Zen Cart wasn't built to not have the $_GET['cPath'] parameter on the product page but it's obviously not good practice to use two variable names for the same parameter and only initialise one, so I'd say this is a Zen Cart bug that the URI Mapping module has to get around, rather than the reverse.
Not that anyone probably cares, so here's the solution...
Edit includes/init_includes/init_ceon_uri_mapping.php
After lines 360-361, which are the following:
PHP Code:
// This is a product related page
$_GET['products_id'] = $associated_db_id;
Add the following code:
PHP Code:
// Rebuild the cPath variable for this page if it doesn't exist
if (!isset($_GET['cPath'])) {
$_GET['cPath'] = zen_get_product_path($_GET['products_id']);
}
(So the block becomes:)
PHP Code:
// This is a product related page
$_GET['products_id'] = $associated_db_id;
// Rebuild the cPath variable for this page if it doesn't exist
if (!isset($_GET['cPath'])) {
$_GET['cPath'] = zen_get_product_path($_GET['products_id']);
}
As my previous post indicates I'm low on time at the minute so I won't be able to release an updated version of the module quite yet. Hopefully sometime next week (unless I can find time this week).
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
WOW! Now that is a great fix! I am very pleased. Thank you for taking time to fix this. I really thought this was a very important fix. You have proved yourself on this. I would recommend this addon to others.
I am still very interested in URI Mappings Manager. I have previously registered my interest in it. I think my boss would be happy to pay a reasonable price to add its capability to our cart. I am anxious to know when that might be available.
T H A N K S ! ! !
:smile:
-
Re: Ceon URI Mapping (SEO)
Hi Conor, Thanks for your help.
Quote:
The only other thing it can be is that your test site doesn't use .htaccess files.
Your right, my local test machine wasnt using .htaccess.
- Heres the fix here for anyone interested. -
Apache had "mod_rewrite" disabled (#LoadModule rewrite_module
modules/mod_rewrite.so) and overrides disabled ( AllowOverride None) in C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
Enabled both by changing to
Code:
LoadModule rewrite_module modules/mod_rewrite.so
and and restarted Apache.
(this site http://corz.org/serv/tricks/htaccess.php makes interesting reading)
I Tested .htaccess by placing a "index.html" file in "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test_htaccess\"
and a .htaccess file with
Code:
<Files *>
deny from all
</Files>
The test file is now forbidden, showing that .htaccess is now working
It Works ! :clap:...the new URi page "http://localhost/zc1/sony-ps3-ir-control/ps3ir-1000" loads now with /htdocs/.htaccess file as
Code:
RewriteEngine On
# ONLY rewrite URIs beginning with /zc1/
RewriteCond %{REQUEST_URI} ^/zc1/.* [NC]
# 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 editors directory
RewriteCond %{REQUEST_URI} !^/zc1/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 (.*) zc1/index.php?%{QUERY_STRING} [L]
Lastly, should I apply the bug fix code you posted for jbittner ?
You've been a great help. Thank you for this mod.
Much appreciated.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
remoteone
You've been a great help. Thank you for this mod.
Much appreciated.
Glad I was able to identify the "problem"! :)
I'm also glad that you like the module!
Quote:
Originally Posted by
remoteone
Lastly, should I apply the bug fix code you posted for jbittner ?
If you display a category image on the product page (i.e. if Configuration > Product Info > Previous Next - Navigation Includes Category Position is not set to 0/"off"), then yes, you should. Otherwise you can just wait until I release a new version and install it (to save you all the copying and pasting!).
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
jbittner
WOW! Now that is a great fix! I am very pleased. Thank you for taking time to fix this. I really thought this was a very important fix. You have proved yourself on this. I would recommend this addon to others.
Glad I could help and glad you like the module! Thanks for the nice comments.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Conor,
After I pasted in the code into includes/init_includes/init_ceon_uri_mapping.php , lines 360-361. (My Previous Next - Navigation Includes Category Position =1)
All pages are completely blank.
Gone back to your original file. So I guess I'll wait for the bug fix before I go live w this mod.
Cheers
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
remoteone
After I pasted in the code into includes/init_includes/init_ceon_uri_mapping.php , lines 360-361. (My Previous Next - Navigation Includes Category Position =1)
All pages are completely blank.
You messed up pasting the code in then!
Best to wait on a new version if you're not sure about PHP etc! :)
All the best...
Conor
ceon
-
1 Attachment(s)
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
You messed up pasting the code in then!
Best to wait on a new version if you're not sure about PHP etc! :)
Er .. is that a question or a statement? No mate, I didnt mess up the paste of the code. Please see attached image.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
remoteone
Er .. is that a question or a statement? No mate, I didnt mess up the paste of the code. Please see attached image.
You missed a closing bracket after the pasted code.. you shouldn't have selected it before pasting, but only the following two lines... :)
PHP Code:
// This is a product related page
$_GET['products_id'] = $associated_db_id;
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Conor,
ok so it was a statement then! :blush:
damn those pesky closing brackets!
Sorry. it was about 1:30 am. brain nbg, must get sleep.
Cheers
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
remoteone
Conor,
ok so it was a statement then! :blush:
damn those pesky closing brackets!
Sorry. it was about 1:30 am. brain nbg, must get sleep.
lol that's a good an excuse as any! :)
Glad you're sorted now!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Conor.
Its up and running on my live site. Fantastic.
Just have suggestion, (youve probly already thort of these)
1. It would be cool if the Ceon URI status for each cat/product/or page showed up in the Action Column as it does for metatags defined etc.
Admin could see which pages dont yet have the URI defined. And a quck editing box that comes up without the need to open the full product desc page. This would speed up URI management for we poor buggers forced to be running dial-up speeds.
2. Maybe a button/checkbox on the Categories / Products / ez-pages admin page(s) allowing shops to auto-gen all products in one go. Good for shops w many products.
Yep, I'm the ideas-man !
Cheers.
-
Re: Ceon URI Mapping (SEO)
can I disable this without access to the database.
my hosting company has said my site is taking up too much bandwidth and has locked the database they won't restore it with me "removing the script" causing the problem,
I think they are lying but I need to do something to get my site back online and I was going to disable CEON and tell them its done and get my site back online.
but they won't turn the database back on so disabling via the php files is my only option, only need to be temporary so I don't want to remove the full module.
thanks
-
Re: Ceon URI Mapping (SEO)
Hi Conor
Thanks again for a great module... although I can't get this to work properly...:frusty:
I've worked through the installation and Configuration for the URI-mapping but when I activate the module and auto generate URI for a category and then a product - when I select either the product or category it sends me back to my store index page?! and not the product info or sub category page... what have I missed?!...because Im sure I have as your modules are ace!
Any guidance greatly appreciated!
Nathan
-
Re: Ceon URI Mapping (SEO)
Hi Conor,
I've had a problem for a while now, oh yes and there's this zencart one aswell! Whereby, on visiting my confirm checkout page from paypal express checkout the big red banner asking for terms and conditions to be checked is immediately displayed - without clicking a thing. This should only be displayed after clicking 'Confirm Checkout' whilst the T&C's is unchecked.
This really had me stumped, but I've now pinpointed the problem to Ceon Uri and thought I would share in case anyone else has the same issue and/or if you wanted to sort it for future releases.
With a new install of zen-cart 1.38 (none of my other mods present) and just the Ceon Uri mod installed I have replicated the problem and found that it does not happen if the Discount Coupon module is installed. Uninstall this DC module and the problem returns?!?. As I don't want the Discount Coupon module visible my workaround is to install the DC module and then hide it from the checkout page by editing the appropriate .php file.
No idea what the reason could be (to do with the rewrites in .htaccess, perhaps?) Maybe you can shed some light on it. Let me know if you want me to carry out further tests - I'd be happy to.
Cheers
Simon
-
Re: Ceon URI Mapping (SEO)
Hi all, I've just installed this mod and have got most of it working well.
By the way this is the best submitted package I've come accross. Very useful and so well put together.
I'm pretty much a newbie and have a problem I can't resolve.
My (existing) categories (and subs) update in the admin both automatically or by entering in the text box, but I can't get my products to update. (I hope I'm using the correct terminology here.)
Is this because it's not updating the data base?
Have I messed up a core file? I had to "hand edit" some as other mod installations had previously changed them.
If someone could make some suggestions where I should check for errors it would be greatly appreciated.
David
http://countrytothecore.net
-
Re: Ceon URI Mapping (SEO)
Just been reading and thought I should clarify something in the above post.
I understand that just installing this mod won't automatically update everything and that I need to do it "manually"
When I wrote automatically update in my first post, what I meant was...
If I go to my admin/products and go to edit the product, I scroll down and leave the box checked, preview, then update.
It's working for categories and subs but not products.
Thanks, David
-
Re: Ceon URI Mapping (SEO)
Hi David,
Quote:
Originally Posted by
australican
Hi all, I've just installed this mod and have got most of it working well.
By the way this is the best submitted package I've come accross. Very useful and so well put together.
Thanks very much indeed for the nice comments, they're greatly appreciated! I'm glad you like the software!
Quote:
Originally Posted by
australican
Have I messed up a core file? I had to "hand edit" some as other mod installations had previously changed them.
It sounds like you haven't copied the changes across for the update_product.php file properly.
If you like I can take a quick look to see if that's the case. Please just get in contact with me privately via this link, sending me some FTP and admin details for your site. Of course you can delete any temporary accounts created for me once we're done, just be sure the FTP account has full write access.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi Simon,
Quote:
Originally Posted by
simon1066
No idea what the reason could be (to do with the rewrites in .htaccess, perhaps?) Maybe you can shed some light on it. Let me know if you want me to carry out further tests - I'd be happy to.
I'm afraid I can't see how the URI mapping module could have the effects you are describing. I don't think it's the source of the problem.
Sorry I can't say more than that, I don't know what you should do to fix that!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Conor, personalized help for free software? You're awesome.
Some extra info that might help.
The core files that had been modified by other mods were update_product.php, and collect_info.php.
Both modified by my shipping estimator, ozpost.
Changes were small, I don't know enough about php, but I don't think they would affect anything.
In an effort to sort out the problem I renamed those two files, hide_update_pro...ect, then uploaded your files as is but still couldn't things to work right.
Maybe I did something wrong setting up in the admin. I might be clutching at straws, but I've been racking my brains for two days and have run out of my amateurish ideas.
Thanks again for looking at this for me, this mod will be a fantastic addition for me as I delve into the strange new world of SEO,
David
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
australican
Conor, personalized help for free software? You're awesome.
Only on special occasions/when someone's been particularly nice! :)
I've fixed that the module on your site for you now.
The changes you made to the core files which were already modified by ozpost were all exactly right.
However, you'd forgotten to upload the modified version of "preview_info.php", so the module wasn't having the auto-generated/entered URI passed on for saving. With that modified core file uploaded everything is working as expected.
Glad you like the software!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi
When I hover over the links which have been automatically or manually re-written, I see the long url being displayed in the status bar (though it displays correctly in the address bar once I click on the link).
Any ideas why this may be the case?
Faz
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chabbu
Any ideas why this may be the case?
Yes, you must have forgotten to upload the modified version of includes/functions/html_output.php - the software is probably redirecting to the "current" (shorter, non-dynamic) URI after you click on the link.. part of the module's automatic historical redirection functionality.
You'll probably also notice that you can't add any products to the cart if they have a static URI entered.. this would confirm the above.
Upload the appropriate modified version of html_output.php for your version of Zen Cart and things should be fine!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
Yes, you must have forgotten to upload the modified version of includes/functions/html_output.php
Conor
ceon
That did the trick!
Many thanks.
-
Re: Ceon URI Mapping (SEO)
Hello,
I am getting the following error. Does anybody know what the problem is?
Not Found
The requested URL /184-pin-ddr-ecc-registered-dimm-rdimm-kit/4gb-kit-2-x-2gb was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.globalmemory.co.uk Port 80
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
globalmemory
Hello,
I am getting the following error. Does anybody know what the problem is?
Not Found
The requested URL /184-pin-ddr-ecc-registered-dimm-rdimm-kit/4gb-kit-2-x-2gb was not found on this server.
I received this error and nailed it down to the contents of my htaccess file.
Is your site installed in the root? Do you have the correct set rewrite of rules in the file (refer to the configuration section of the documentation for this).
Faz
-
Re: Ceon URI Mapping (SEO)
Hi Faz,
Thanks for the advice! Sajid hadn't uploaded any htaccess file at all. Now that's been done everything's working fine! :)
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Is there a way to quickly uninstall this or disable this? I've installed this and it has broke the site completely. I'm pretty sure that it has something to do with the .htaccess after doing some poking around, but I don't have the knowledge or time to learn how to write my own htaccess file.
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
asauterChicago
Is there a way to quickly uninstall this or disable this? I've installed this and it has broke the site completely. I'm pretty sure that it has something to do with the .htaccess after doing some poking around, but I don't have the knowledge or time to learn how to write my own htaccess file.
Edit: never mind, figured out to disable. Now that I'm in not panic mode, can anyone direct me to a good resource on how to write an .htaccess file to work with this :-)? I'm on bluehost, which I believe is Apache. The cart is also not in the root directory of the site.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
asauterChicago
Edit: never mind, figured out to disable. Now that I'm in not panic mode, can anyone direct me to a good resource on how to write an .htaccess file to work with this :-)? I'm on bluehost, which I believe is Apache. The cart is also not in the root directory of the site.
The instructions with the module should give you most of the information you need. Otherwise please try searching online for tutorials about rewrite rules.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hiya,
I've had this mod installed on my site for a while now, and everything was working perfectly. But now, when accessing my site, I can only view the front page. Any other page gives me a blank white page. I have the debugging tool installed, and am receiving no errors there.
I've disabled the mod for now, as it seems to work without it enabled. My question is: what would be possible causes for this to suddenly stop working? I haven't made any recent changes.
Thanks!
-
Re: Ceon URI Mapping (SEO)
Hi,
The fact that it was working perfectly before but not now means something must have changed with your host or your account. I'd guess that either the server configuration has changed (something to do with htaccess files being disabled?) or the htaccess file has changed. Best talk to your hosts about this.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
ok, so i've manually updated approx 350 products and am ready to enable this mod. However, I already have indexed content on google. I understand that old links will be redirected to the rewritten ones, but eventually, will google update the old urls and replace them with the rewritten ones, or will I have to resubmit and updated sitemap?
Thanks
Faz
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chabbu
ok, so i've manually updated approx 350 products and am ready to enable this mod. However, I already have indexed content on google. I understand that old links will be redirected to the rewritten ones, but eventually, will google update the old urls and replace them with the rewritten ones, or will I have to resubmit and updated sitemap?
As far as I know, yes, Google will udpate its links to use the new ones. I don't know how long that takes, I have very little SEO experience. Hopefully someone else here can let us know more please? :)
As for the sitemap, I don't see why you shouldn't just resubmit it anyway, but again I have experience of this, I've never used one before.
As I said, hopefully someone with knowledge of these areas will comment.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
As for the sitemap, I don't see why you shouldn't just resubmit it anyway
ceon
Because I'm lazy, and don't want to go through the process of creating one again!
I'll bring this to the attention to the folk in the 'search engine' thread, may be they can comment.
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
chabbu
Because I'm lazy, and don't want to go through the process of creating one again!
:) I thought maybe it was a point and click thing. Really don't know anything about this one! :)
Quote:
Originally Posted by
chabbu
I'll bring this to the attention to the folk in the 'search engine' thread, may be they can comment.
Please post back here with what you find, in case others have the same question.
Thanks!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Conor, I apologize for my late response.
I had issues that kept me away from my computer.
Your personalized help was above and beyond the call of duty.
You (of course ) fixed the problem.
The mod is working great, and updating all my products was a snap.
I'll paypal you a beer as soon as I make some money!
Thanks again David
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
chabbu
will google update the old urls and replace them with the rewritten ones, or will I have to resubmit and updated sitemap?
Thanks
Faz
Yes google will eventually update.
When? It depends on how often their bot visits you.
I'm not an expert but...I believe it is different for all sites. It depends on how often your content changes.
There is a mod that makes writing and submitting your maps very easy. Look for sitemaps xml.
Once installed it's just one click to write and one to submit.
It configurable and you can tell the bot how often you update your site.
Again I'm not an expert but I believe that the bots will "take your word for it" to a degree and check your site according to your recommendations.
David
-
Re: Ceon URI Mapping (SEO)
For some reason, my ez pages are not being rewritten. Any ideas?
-
Re: Ceon URI Mapping (SEO)
Is there some kind of bot-like add-on that will edit every product and save... That way it would be a lot easier for me to have new URI's for all my legacy products..
I'm going to see if i can't pull this off with easy populate & phpmyadmin..
If anyone has an easy way to do it , please let me know...
:smile:
-
Re: Ceon URI Mapping (SEO)
Just wondering if for seo reasons i should add .htm . html or similar to the end of each url, at the moment im leaving it blank e.g /body-kits / alloy-wheels / air-filters, its been live for quite sometime now but google hasnt picked up any of the url's yet, should i have something like /alloy-wheels.html / air-filters.htm etc etc. or would it make absolutly no difference at all. I have added a sitemap.xml and google has accepted it, but that was a few months ago, i would have thought by now by adding the complete url into google it should have at least one find but there is none, all the other sites ive built have had listings showing in search engines within a few weeks, maybe 3 months tops.
Thanks
Ben
-
Re: Ceon URI Mapping (SEO)
Hello,
This is a great mod, and installation was a breeze! Thanks so much for all your hard work on it.
I have converted a couple of categories and products, however, the cPath ID is still displaying in the products. None of them are links; they are all in the categories. I auto-generated the URIs.
Here are the pages I've converted:
http://chickensonline.com/eggs
http://chickensonline.com/eggs/rhode...d-eggs?cPath=2
http://chickensonline.com/chickens
http://chickensonline.com/chickens/a...chicks?cPath=1
http://chickensonline.com/chickens/r...chicks?cPath=1
Also, is there a way to get the www. in there?
I am using Zen Cart 3.8a.
Thanks!
Karen
-
Re: Ceon URI Mapping (SEO)
Hi, Karen again,
I went forward with editing the EZ Pages URIs, and I'm having a lot of trouble with them. My Contact Us is being rewritten (with some trouble), but the rewrite only works in the header and footer links, not in the sidebox link.
I can't get the privacy or conditions pages to rewrite at all. One of my product categories isn't rewriting as smoothly as the other one. When you hover over "Chickens" in the header or footer, you see the old URI with all the parameters, but when you click on it, you go to http://chickensonline.com/chickens. For "Eggs", when you hover over it, you see http://chickensonline.com/eggs and that is where you go if you click. That method of rewrite is friendlier for the search engines. They are both set up exactly the same way, so I don't understand the difference. In the sidebox, you see the old URIs for all the items when you hover (but they go to the new URIs).
The only thing that could be different for the "Eggs" link in the header is that when I first started editing, I edited a couple of products under Chickens before I edited Chickens itself. That's the only thing I can think of that is different. I'm not sure how to fix the sidebox issue.
Thank you so much for your help! I'm doing this site for my son's new business, and he needs all the help he can get with ranking.
-
Re: Ceon URI Mapping (SEO)
Sorry to keep posting, but I read back further in this thread, and I saw another post about the URI displaying the long URI when hovering, and sure enough, I had installed html_output.php in the wrong directory! So now my hover URIs are correct.
Sorry for not seeing this sooner. (I'm still trying to figure out the other problems though.)
Thanks,
Karen
-
Re: Ceon URI Mapping (SEO)
OK, now I'm really stumped. After moving the html_output.php file into the correct directory, I get these errors when I try to open the admin console.
Code:
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Fatal error: require() [function.require]: Failed opening required 'includes/functions/html_output.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
A little background--at first, I put the html_output.php file in the admin/includes/functions directory instead of includes/functions. Everything broke when I moved it (well not everything, just the admin console). Then I tried placing another copy of html_output.php in the admin/includes/functions/ directory to see if that would patch the problem, but then when I try to get to the admin console, I get the index page (with the long URI). So I removed the file from that directory again.
Have I totally destroyed my installation by placing that file in the wrong place initially? Is there a way I can fix this? It was working somewhat before, with the problems described in previous posts, but I could still get to the admin console.
Thanks so much for your help! I obviously won't be doing any more work on this until I get some feedback since I seem to be making it worse with everything I've tried so far. :oops:
Thanks,
Karen
-
Re: Ceon URI Mapping (SEO)
For all those out there with AJAX Banner Swapper installed but not working when Ceon URI Mapper is installed (and enabled) - I found that by commenting out one line in init_includes/init_ceon_uri_mapping.php made the banners display again:
Around line 410
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
// Comment the following line out
// header('HTTP/1.1 404 Not Found');
$_GET['main_page'] = 'page_not_found';
}
Not sure of the impact of this yet, however I discovered using Firebug that the XML page sent by the ajax banner server php script was being reported as 404, however the content was still being sent by the server...
If this helps anyone solve this problem, please let me know.
Chris
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
kfarrell
OK, now I'm really stumped. After moving the html_output.php file into the correct directory, I get these errors when I try to open the admin console.
Code:
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Fatal error: require() [function.require]: Failed opening required 'includes/functions/html_output.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
A little background--at first, I put the html_output.php file in the admin/includes/functions directory instead of includes/functions. Everything broke when I moved it (well not everything, just the admin console). Then I tried placing another copy of html_output.php in the admin/includes/functions/ directory to see if that would patch the problem, but then when I try to get to the admin console, I get the index page (with the long URI). So I removed the file from that directory again.
I fixed that problem. It seems that there was already an html_output.php file in the /admin/includes/functions/ directory, and I had overwritten and then deleted it. Oops. I went back to my original Zen-Cart zip and re-uploaded that file, and everything is fine.
However, I have two remaining issues:
- I can't edit or delete an EzPage item. I tried re-uploading the ezpages.php file (just in case), but that didn't help.
- I would like to add the www. in front of my URIs, but I don't know where to configure that option.
Thanks so much for this mod! It is a lifesaver and a great mod, even with all my mess-ups! Looking forward to getting the site indexed on Google now with SEO friendly URLs! Thanks!
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
kfarrell
However, I have two remaining issues:
- I can't edit or delete an EzPage item. I tried re-uploading the ezpages.php file (just in case), but that didn't help.
- I would like to add the www. in front of my URIs, but I don't know where to configure that option.
Actually, I now found several more issues. If you click on Tell a Friend or Write a Review from a product page, you get a blank page. These URLs are being rewritten--I saw them in phpMyAdmin, and they appear to be going to the correct page ID.
Also, not only can I not add, edit, or delete EZ-Pages, I can't add categories either (though I can edit them), and one of my categories displays a blank page.
There is a blank page on http://chickensonline.com/rabbits
But you can see the subpage http://chickensonline.com/rabbits/lion-heads
I haven't tried deleting categories since I can't add them back. When I try to add a category, edit, add, or delete an EZ-Page, I am returned to the main screen of the console.
Please forgive my ignorance--I am new to this software and Zen-Cart and no PHP expert either. However, I would be eternally grateful if one of you gurus could help me figure out where I went wrong. Please help! :frusty:
Thanks,
Karen
-
Re: Ceon URI Mapping (SEO)
Hi Ben,
Quote:
Originally Posted by
ben harry
Just wondering if for seo reasons i should add .htm . html
No, you shouldn't add any extensions. It won't affect your SEO and it's recommended practice (by Tim Berners Lee who created the web) to not indicate the technology used to serve pages in the URI of the page itself (i.e the .htm or .html) if at all possible.
Hope that helps!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
kfarrell
I fixed that problem. It seems that there was already an html_output.php file in the /admin/includes/functions/ directory, and I had overwritten and then deleted it. Oops. I went back to my original Zen-Cart zip and re-uploaded that file, and everything is fine.
Yes, that's what you needed to do!
Quote:
Originally Posted by
kfarrell
However, I have two remaining issues:
- I can't edit or delete an EzPage item. I tried re-uploading the ezpages.php file (just in case), but that didn't help
I'm afraid I don't know what you've done wrong there.
Quote:
Originally Posted by
kfarrell
- I would like to add the www. in front of my URIs, but I don't know where to configure that option.
You can change that in your includes/configure.php and admin/includes/configure.php files.. change the address of your site so that it includes www.
Glad you like the module!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Hi Chris,
Quote:
Originally Posted by
baz4096
If this helps anyone solve this problem, please let me know.
That doesn't sound like a good fix. If you are getting 404 errors with an xml file then you should add in an appropriate rewrite rule condition to exclude that file from the rewrite, not break the code to compensate for it!
Make sure you are using the latest version of the module and the example rewrite rule in its docs (which doesn't rewrite anything ending in .xml, .php etc.).
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
I'm afraid I don't know what you've done wrong there.
You can change that in your includes/configure.php and admin/includes/configure.php files.. change the address of your site so that it includes www.
Glad you like the module!
All the best...
Conor
ceon
Thanks so much for the reply and the advice! I did what you said with the configure files; however, nothing changed with the URIs. And I'm really at a loss with what to do with my admin console.
I still can't edit or delete (or I assume add) an EZ-Page except directly through the database with phpMyAdmin. I can add products--just tested that. I can edit products and categories, so we're good there, and most everything else is already set up, so I supposed I could just leave it broken, but... Do you or anyone you know do custom "repair" work--for a fee of course! I'm wondering if the non-change in the URIs and the broken EZPages are related.
BTW, is the admin/includes/configure.php file supposed to be read only? Mine is.
Thanks so very much for your help and your module!
Karen
-
Re: Ceon URI Mapping (SEO)
Uh Oh... Now I can't log in to the admin console at all. I was in, and everything was fine--I didn't even change anything, then I got logged out and I can't log back in. I tried adding a new admin user in the database, but that user can't log in either.
Any ideas? (The public site is still up--all this chaos is happening on the admin side and started right after I finished installing the module and realized I had put that html_output.php file in the wrong place and then moved it back to the right place.)
Thanks for your help!
Karen
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
kfarrell
Uh Oh... Now I can't log in to the admin console at all. I was in, and everything was fine--I didn't even change anything, then I got logged out and I can't log back in. I tried adding a new admin user in the database, but that user can't log in either.
Got out of that one... I deleted my temp internet files and restarted my browser and got back in. :clap:
Still can't work with EZ-Pages though. Sigh.
-
Re: Ceon URI Mapping (SEO)
Hello Conor,
I am freshman of zen cart and Ceon URI Mapping, I Used ultimate_seo_urls, but when I found Ceon URI Mapping is much more better than that, so I change to install Ceon URI Mapping mapping according to your installation instruction, I copy all the files folders in the "files" and "1.3.8a" folder in the modified_core_files, then paste them into our website root. I log in the admin, and I found the Ceon URI Mapping is there,
But I found my web url is still dynamic, I think I have some wrong operation on the Create the necessary database tables and configure the URI auto-generation settings.
and Add the rewrite rules to Apache.
Could you tell me more in detailed how to do that.
I aprreciate in advance!!!
If you come to China, I treat you.:laugh:
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
alan145
Think I have some wrong operation on the Create the necessary database tables and configure the URI auto-generation settings.
and Add the rewrite rules to Apache.
It sounds like you still have the Ultimate module running as Ceon URI Mapping doesn't automatically generate URIs.. you must remove Ultimate SEO from your site and re-install Ceon URI Mapping.
I'm afraid I've never used Ultimate SEO before so I don't know how to uninstall it.. you should ask in the thread for it!
Hope that helps!
All the best...
Conor
ceon
-
3 Attachment(s)
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
It sounds like you still have the Ultimate module running as Ceon URI Mapping doesn't automatically generate URIs.. you must remove Ultimate SEO from your site and re-install Ceon URI Mapping.
Hello Conor,
I am sure I have completely remove the Ultimate module, because I delete all the files ans reinstall the zen cart, and intall the Ceon URI Mapping again.
when I log in the"admin" I found Ceon URI Mapping is there, you can check following pictures I cut from our website. Please check that
Could you tell me how to Create the necessary database tables and configure the URI auto-generation settings?
Also can i use rewrite rules for Htaccess which you have write for the sample directly? Can I use the following rewrite rules? or Do I need to write one by my own?
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} !^/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]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
It's not quite a configuration issue.. I've noticed that your site will redirect to the URI Mapping entered in the admin when you go to the product page but *no* links use the URI Mapping. This means you've forgotten to upload the new version of
includes/functions/html_output.php
from the modified_core_files folder (for your version of ZC).
That means that the form action URIs are being set to the old dynamic Zen Cart URIs, so the forms are being posted to an old URI and then having to be redirected to the new URI. Since redirections don't re-post values the items aren't being added to the cart.
Hope that gets you up and running.
All the best...
Conor
ceon
I'm also having the problem of my products not being added to the shopping cart.
Funnily enough, I have another site with this module and it's working beautifully.
I have tried uploading file again - no good.
I even tried downloading the file from the working site and uploading it to the non-working one - still no good.
Products that haven't had their URLs updated can be added to the shopping cart no problems, so it does seem that something is going wrong here.
Help!!
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
alan145
Could you tell me how to Create the necessary database tables and configure the URI auto-generation settings?
No, as that will already all have been done correctly. You've no problems in that regard as you can see the config utility!
Quote:
Originally Posted by
alan145
Also can i use rewrite rules for Htaccess which you have write for the sample directly?
Possibly, that's what I've put them in the docs for. It's up to you to tailor them for your site if necessary. Please read the docs for more information, all you should need should be there. If not, a quick search for a rewrite tutorial on the internet should get you any other info you need.
I think you may possibly be mistaken in thinking that the site will auto-generate URIs for each of your categories and products.. you must go in and edit *every* category and product on your site, "updating" each, to have a URI "auto-generated" for the category/product.
Ceon URI Mapping does not work like Ultimate SEO, it does not do automatic auto-generation of all URIs.
I think that's the bit you've missed. I'd say everything's installed fine but you were just expecting all the URIs to change at once.. that's not how the module works!
Hope that helps!
All the best..
Conor
-
Re: Ceon URI Mapping (SEO)
To further clarify.. You have to enter a URI for each category/product/ez-page/manufacturer or tick "auto-generate" and click "update" for each category/product/ez-page/manufacturer. Ceon URI Mapping is designed to give you intricate control of your URIs, it doesn't apply a general policy to them all (like the "SEO" modules).
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
Lissy
I'm also having the problem of my products not being added to the shopping cart.
Funnily enough, I have another site with this module and it's working beautifully.
I have tried uploading file again - no good.
I even tried downloading the file from the working site and uploading it to the non-working one - still no good.
Products that haven't had their URLs updated can be added to the shopping cart no problems, so it does seem that something is going wrong here.
Help!!
Hi,
I just added this mod to my test site yesterday and I have the same problem. When the URL's are modified I can't add them to cart but the items with unedited URL's get added to cart no problem.
I think it might be an issue with the htaccess but I am not too sure how to fix it.
Any help will be appreciated,
Thanks!!!
BTW, I am running 2 zen carts with the same host under 2 different domains, the first installation is in the main folder under /public_html/
The other one which I installed this mod to is under /public_html/ressocks/
So what I did was I tried modifying the htaccess file in public_html but I couldn't get it to work, so then I added an htaccess file to /public_html/ressocks/ and the URL's started to work but now I can't add to cart???
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Lissy
I'm also having the problem of my products not being added to the shopping cart.
Help!!
I'm afraid that the steps you quoted are the only ones I know of that would fix the problem you are having.
If following those steps doesn't help then you've done something wrong somewhere.
Sorry I can't be more help than that.
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi Chris,
That doesn't sound like a good fix. If you are getting 404 errors with an xml file then you should add in an appropriate rewrite rule condition to exclude that file from the rewrite, not break the code to compensate for it!
Make sure you are using the latest version of the module and the example rewrite rule in its docs (which doesn't rewrite anything ending in .xml, .php etc.).
ceon
Hi Conor
I agree, it isn't a good fix, however I was getting very strange behaviour - I went through these steps:
Banner Swapper Installed - Works fine
URI Rewrite Install but disabled it (from admin config) - Banner Swapper Worked
URI Rewrite Enabled and configured correctly - Banner Swapper hangs when loading images.
I've narrowed down the problem using Firebug, and this is the bizarre behaviour:
The php script that generates the text/xml originally was running fine, generating output with no errors, however as soon as I switched on the URI rewrites, the php script still ran, however it's header status code was modified to 404. Firebug was still showing the content was being sent, however IE/FF couldn't load the XML at all.
Disabling that line in your code stopped the headers being modified to 404, causing the banner swapper script to work again.
I've added a rewritecond to my .htaccess as follows:
RewriteCond %{REQUEST_URI} !/AJAX_servers/AJAX_banner_swapper_server.php [NC]
Hopefully I've not done something wrong there but please correct me if I have.
When I get a bit more time towards the end of the week I will look into this in more detail, and perhaps find a better solution...
Chris
-
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
baz4096
The php script that generates the text/xml originally was running fine, generating output with no errors, however as soon as I switched on the URI rewrites, the php script still ran, however it's header status code was modified to 404.
Are you using the latest version of the module?
It has functionality in it to work with "broken" Zen Cart modules which use hard-coding instead of Zen Cart's link functions etc.
The 404 error behaviour you are describing seems to indicate that this banner module is one of these broken modules.
I'm afraid I have simply run out of support time on this forum for the rest of this week but you may want to take a look at the "Excluded Files" functionality in the Ceon URI Mapping config utility.
If that doesn't help, please make sure that your site isn't trying to rewrite URIs ending with .php or .xml.. the example rewrite rules in the *latest* versions of the modules don't do this, earlier ones *did* so won't work with your site!
Hope that helps.
Enjoy the rest of your week! :)
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
Are you using the latest version of the module?
It has functionality in it to work with "broken" Zen Cart modules which use hard-coding instead of Zen Cart's link functions etc.
The 404 error behaviour you are describing seems to indicate that this banner module is one of these broken modules.
I'm afraid I have simply run out of support time on this forum for the rest of this week but you may want to take a look at the "Excluded Files" functionality in the Ceon URI Mapping config utility.
If that doesn't help, please make sure that your site isn't trying to rewrite URIs ending with .php or .xml.. the example rewrite rules in the *latest* versions of the modules don't do this, earlier ones *did* so won't work with your site!
Hope that helps.
Enjoy the rest of your week! :)
All the best...
Conor
ceon
Hi Conor
I'm using the latest version (3.2.3). I will definitely give the excluded files a look over. Thanks for your time - I appreciate it.
Chris
-
Re: Ceon URI Mapping (SEO)
Hi Alan,
I too upgraded from Ultimate SEO and found these instructions for removing that mod useful:
http://www.magic-seo-url.com/zencart...-seo-urls.html
However, I am having a problem that perhaps Conor could help me with. I'm getting this error from my test server after installation:
Warning: require_once(DIR_FS_ADMINincludes/classes/class.String.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/websites/zen-cart/includes/functions/extra_functions/ceon_uri_mapping.php on line 21
Fatal error: require_once() [function.require]: Failed opening required 'DIR_FS_ADMINincludes/classes/class.String.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/websites/zen-cart/includes/functions/extra_functions/ceon_uri_mapping.php on line 21
I've checked the two topics where others have experienced this problem and tried the solutions you recommended (re-FTPing), but no dice.
The server is local to my network, so I've tried just moving the files, and then tried to FTP it as well, but I keep having the same problem.
I've added the .htaccess file in my zen cart folder, but nothing.
Can you help me out here?
Thanks, Nathan
Quote:
Originally Posted by
alan145
Hello Conor,
I am freshman of zen cart and Ceon URI Mapping, I Used ultimate_seo_urls, but when I found Ceon URI Mapping is much more better than that, so I change to install Ceon URI Mapping mapping according to your installation instruction, I copy all the files folders in the "files" and "1.3.8a" folder in the modified_core_files, then paste them into our website root. I log in the admin, and I found the Ceon URI Mapping is there,
But I found my web url is still dynamic, I think I have some wrong operation on the Create the necessary database tables and configure the URI auto-generation settings.
and Add the rewrite rules to Apache.
Could you tell me more in detailed how to do that.
I aprreciate in advance!!!
If you come to China, I treat you.:laugh:
-
Re: Ceon URI Mapping (SEO)
Hi Nathan,
Quote:
Originally Posted by
nathant
Warning: require_once(DIR_FS_ADMINincludes/classes/class.String.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/websites/zen-cart/includes/functions/extra_functions/ceon_uri_mapping.php on line 21
As can clearly be seen, you have not got a definition for DIR_FS_ADMIN. That is because the above file should not be in the catalog but in your admin folder!
Delete the file /includes/functions/extra_functions/ceon_uri_mapping.php from your store (and upload it to the admin/includes/functions/extra_functions/ directory if you haven't already - actually, check that you haven't uploaded all of the admin files to the wrong folder!).
And please be more careful next time you upload files - take a note of where they are supposed to go and where you are actually uploading them! ;)
As I said previously, if you hear nothing else from me this week it's because I'm out of time so hopefully that helps!
All the best...
Conor
ceon
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
Lissy
I'm also having the problem of my products not being added to the shopping cart.
Funnily enough, I have another site with this module and it's working beautifully.
I have tried uploading file again - no good.
I even tried downloading the file from the working site and uploading it to the non-working one - still no good.
Products that haven't had their URLs updated can be added to the shopping cart no problems, so it does seem that something is going wrong here.
Help!!
Hi,
This might help you out since I was going through the same problem.
Make sure that you have uploaded the modified_core_files
Specially, check that you have the modified version of the includes/functions/html_output.php
Hope this solves your problem!
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
HelpMeSell
Hi,
This might help you out since I was going through the same problem.
Make sure that you have uploaded the modified_core_files
Specially, check that you have the modified version of the includes/functions/html_output.php
Hope this solves your problem!
Nevermind, I just realized you already tried this!!! DOH!!!
-
Re: Ceon URI Mapping (SEO)
At least you tried! Thanks anyway.
I've tried some more things:
If you select the item from a category page, rather than the product page, it goes into the cart.
I also tried creating a brand new product (because I thought that way it couldn't have an "old" URL) but it's not working either.
-
Re: Ceon URI Mapping (SEO)
Is it possible to avoid duplicated products with this mod, if they are linked in different categories?
ie.
www.site.ext/books/archaeology/history-of-ancient-rome.html
www.site.ext/books/history/history-of-ancient-rome.html
etc...
Is it possible ie. to make something like
www.site.ext/books/history-of-ancient-rome.html
or
www.site.ext/history-of-ancient-rome.html
and then have each product linked to the respective category?
And... how much this software charge server loading time?
-
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
No, as that will already all have been done correctly. You've no problems in that regard as you can see the config utility!
Possibly, that's what I've put them in the docs for. It's up to you to tailor them for your site if necessary. Please read the docs for more information, all you should need should be there. If not, a quick search for a rewrite tutorial on the internet should get you any other info you need.
I think you may possibly be mistaken in thinking that the site will auto-generate URIs for each of your categories and products.. you must go in and edit *every* category and product on your site, "updating" each, to have a URI "auto-generated" for the category/product.
Ceon URI Mapping does not work like Ultimate SEO, it does not do automatic auto-generation of all URIs.
I think that's the bit you've missed. I'd say everything's installed fine but you were just expecting all the URIs to change at once.. that's not how the module works!
Hope that helps!
All the best..
Conor
Quote:
Originally Posted by
conor
To further clarify.. You have to enter a URI for each category/product/ez-page/manufacturer or tick "auto-generate" and click "update" for each category/product/ez-page/manufacturer. Ceon URI Mapping is designed to give you intricate control of your URIs, it doesn't apply a general policy to them all (like the "SEO" modules).
Hello Conor,
After you patient explain, I have some idea now.
According to your instruction, "
I think you may possibly be mistaken in thinking that the site will auto-generate URIs for each of your categories and products.. you must go in and edit *every* category and product on your site, "updating" each, to have a URI "auto-generated" for the category/product.“
Could you give me a example how to do that, how to edit?
or I have to have to enter a URI for each category/product/ez-page/manufacturer, where to enter?
Conor, Please help me, I am been crazy several days, I am not a professial in web and program,
Regards,
Alan
-
Re: Ceon URI Mapping (SEO)
Alan - you simply click on the product to bring up the edit screen, and you can play with the URL down the bottom.
Okay, back to my problem with not being able to add products to the shopping cart.
Someone has pointed out to me that on the site where this module is working, the admin files are in a directory actually called admin.
But on the site where it's not working, my admin files are in a directory called something else.
Is it possible that somewhere in the code that's used to create the shopping cart ZC is looking for a file structure under the admin directory? Which of course wouldn't work because it needs to be changed??
I know I'm pulling at straws, but I figured it was worth asking.
I woudl REALLY like some help here!