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

Ceon URI Mapping (SEO)

Locked

Views: 472,267

Results 2,361 to 2,380 of 2,913
This thread is locked. New replies are disabled.
31 Jan 2011, 11:25 PM
#2361
akabin avatar

akabin

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Ceon URI Mapping (SEO)

I'm in the process of updating our shopping cart and eventually adding the URI Mapping. I just updated to 1.3.9h and installed the 1.3.9d version of Ceon URI mapping which was suggested for "h". The part I think I'm stuck on is the .htaccess file. I'm trying it out first on my "test" installation, so it's located in a folder called "zen" and my admin file is "adminTVC". Here is my .htaccess file:

#
# @copyright Copyright 2003-2010 Zen Cart Development Team
# @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
# @version $Id: .htaccess 16111 2010-04-29 22:39:02Z drbyte $
#
# This is used with Apache WebServers
#
# The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain 

approved exceptions
# It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can 

normally be executed if ExecCGI is disabled.
# Will also prevent people from seeing what is in the dir. and any sub-directories
#
# For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the 

AllowOverride configuration in your apache/conf/httpd.conf file.
# Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to 

add 'Options' to the AllowOverride list, if 'All' is not specified. 
# Example:
#<Directory "/usr/local/apache/htdocs">
#  AllowOverride Limit Options Indexes
#</Directory>
###############################
DirectoryIndex index.php

# deny *everything*
<FilesMatch ".*\..*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# but now allow just *certain* necessary files:
<FilesMatch "(^$|^favicon.ico$|.*\.(php|js|css|jpg|gif|png)$)">
  Order Allow,Deny
  Allow from all
</FilesMatch>


IndexIgnore */*


# The following makes adjustments to the SSL protocol for Internet Explorer browsers
<IfModule mod_setenvif.c>
  <IfDefine SSL>
    SetEnvIf User-Agent ".*MSIE.*" \
             nokeepalive ssl-unclean-shutdown \
             downgrade-1.0 force-response-1.0
  </IfDefine>
</IfModule>

# Fix certain PHP values

#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

# to turn off register_globals
# php_value register_globals 0

#turn off X-PHP-Originating-Script header when sending emails from admin
#uncomment to activate:
# php_flag mail.add_x_header Off

RewriteEngine On

# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/zen/ [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zen/adminTVC [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zen/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 .* /zen/index.php?%{QUERY_STRING} [L]

I can't figure out how to overcome the 404 error I'm getting on all pages. Any suggestions?

1 Feb 2011, 10:03 AM
#2362
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

akabin:

I'm in the process of updating our shopping cart and eventually adding the URI Mapping. I just updated to 1.3.9h and installed the 1.3.9d version of Ceon URI mapping which was suggested for "h". The part I think I'm stuck on is the .htaccess file. I'm trying it out first on my "test" installation, so it's located in a folder called "zen" and my admin file is "adminTVC". Here is my .htaccess file:

Two things.

First, you shouldn't install Ceon URI Mapping on a "test" site that's in a subfolder.

You must instead set up a test site or a test subdomain.

E..g yourtestsite.yourdomain.com

Otherwise when you change the test site to be the real site you will have to enter/generate ALL your URI mappings again. Every single one!

Second, you have to create a .htaccess file in the shop's main directory or add the rule to any existing .htaccess file in the shop's main directory. You do NOT add the rule to the .htaccess file in the admin folder.

All the best..

Conor
ceon

1 Feb 2011, 2:36 PM
#2363
enzo_ita avatar

enzo_ita

Zen Follower

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

Re: Ceon URI Mapping (SEO)

Hi,
I have a strange problem.
I had Ceon URI installed and working perfectly.
After that I had to change some files in order to adequate the functionality to the Italian version and I overwrote the italian version of the admin and includes folders and everyting was working fine.
After that I noticed that obviously the automatic creation of the url was not working anymore but the simplyfied urls were still there.
I then reinstalled the Ceon URI software version 3.80 but nothing changed. The page were you insert the product has not the checkbox to ask the software to create the simplyfied url neither the field proposing the url is shown.
I can not understand why CEON URI it is not working now.
The db was not touched and both the configure and module section of the admin page are there and seems to work.
I think there is a file that it is not in the right place or that is ovverridden by the italian version, but I do not have idea of which file I shoud look for.
Can you help me?
Thanks

enzo

1 Feb 2011, 3:24 PM
#2364
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Enzo,

enzo-ita:

I overwrote the italian version of the admin and includes folders

The is no Italian version of the admin folders. You can create an Italian version of the language files but not any other type of file.

enzo-ita:

The page were you insert the product has not the checkbox to ask the software to create the simplyfied url neither the field proposing the url is shown.

Then, simply the software hasn't been installed properly. You haven't applied the core file changes.

Once you do that the functionality will return.

All the best..

Conor
ceon

1 Feb 2011, 4:00 PM
#2365
enzo_ita avatar

enzo_ita

Zen Follower

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

Re: Ceon URI Mapping (SEO)

Welllllllllll
I can not belive it, but I have been so stupid to not do the installation completely.
What is worse is that I was convinced to have done all the installation process carefully.
May be I am getting too old for these things.
However...you were right, now it works like before.
Thanks
enzo

1 Feb 2011, 4:11 PM
#2366
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi enzo,

enzo-ita:

I can not belive it, but I have been so stupid to not do the installation completely.
What is worse is that I was convinced to have done all the installation process carefully.
May be I am getting too old for these things.
However...you were right, now it works like before.

It's easily done! Sometimes I write Zen Cart support emails in my head and then forget that I didn't actually write the email in real life and the person the contacts me reminding me to get back to them! :)

Glad everything's sorted now.

All the best...

Conor
ceon

1 Feb 2011, 10:58 PM
#2367
akabin avatar

akabin

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,

Thanks for the information. I switched it to a subdomain vs. a subfolder and everything seems to be working correctly except anything related to https where I now get a "connection has timed out". As soon as I go in the configure.php file and change ENABLE_SSL_ADMIN to 'false' or ENABLE_SSL to 'false', everything is fine. Any suggestions on what might be causing my issues with SSL?

1 Feb 2011, 11:50 PM
#2368
akabin avatar

akabin

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Never mind, I'm an idiot. Since it's in a subdomain, not a subfolder, the subdomain would need it's own certificate. I'll just have to test it w/the SSL off. Everything else seems to be working. Thanks for the suggestion!

2 Feb 2011, 11:09 AM
#2369
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

akabin:

Since it's in a subdomain, not a subfolder, the subdomain would need it's own certificate. I'll just have to test it w/the SSL off.

Yes, for the test site disable SSL then re-enable SSL when the code for the test site becomes the live site. Of course the paths for DIR_FS_CATALOG and DIR_FS_ADMIN will change at the same time so it's easy to change the ENABLE_SSL setting when changing them.

akabin:

Everything else seems to be working. Thanks for the suggestion!

Glad you have things working. Enjoy the new URIs! :)

All the best...

Conor
ceon

2 Feb 2011, 11:55 AM
#2370
lynks avatar

lynks

New Zenner

Join Date:
Feb 2011
Posts:
4
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,

I'm having some trouble getting this module to work. On my admin panel I have an option under the modules drop-down, which I visited and it added the db tables without error. I also have an option under the configuration drop-down. I do not however, have any new options added when I go to edit a category/product and so I'm a little stuck.

Thanks in advance!

2 Feb 2011, 12:09 PM
#2371
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

~lynks:

I do not however, have any new options added when I go to edit a category/product and so I'm a little stuck.

You haven't applied the core file modifications. Read the installation information about that bit of the installation process and carry it out. You must have missed it before.

All the best..

Conor
ceon

2 Feb 2011, 12:16 PM
#2372
lynks avatar

lynks

New Zenner

Join Date:
Feb 2011
Posts:
4
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

You haven't applied the core file modifications. Read the installation information about that bit of the installation process and carry it out. You must have missed it before.

All the best..

Conor
ceon

Christ I'm an idiot, I misread that section of the installation.

Thanks for the quick reply and a great module!

2 Feb 2011, 12:34 PM
#2373
lynks avatar

lynks

New Zenner

Join Date:
Feb 2011
Posts:
4
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

great, all working. now to save each of the 1200 products :P
should be able to write a perl script or a iterated (and probably very complex) sql insert, do you know of anyone whose done something like this successfully?

3 Feb 2011, 12:35 AM
#2374
lynks avatar

lynks

New Zenner

Join Date:
Feb 2011
Posts:
4
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

sorry conor but i have another problem;

the url rewrite works flawlessly for categories and subcategories, even correctly showing a list of products once you have navigated to a subcategory. when i try to visit a product page however, the rewrite works fine, the url shows correctly but none of the inner page content is shown

the zencart cache is showing this error:
PHP Fatal error: Call to undefined function tep_draw_form_with_function() in /var/www/freshspark/data/www/fran.freshsparkcreative.com/includes/templates/template_default/templates/tpl_product_info_display.php on line 20

as a side note, any product for which i have not assigned a url mapping breaks even worse; returning a completely blank page upon visiting a product!

in this second case, the following, different error is returned;
PHP Fatal error: Call to undefined function zen_get_generated_category_path_rev() in /var/www/freshspark/data/www/fran.freshsparkcreative.com/includes/init_includes/overrides/init_canonical.php on line 24

any thoughts? and thanks again.

3 Feb 2011, 8:28 AM
#2375
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

HI,

[quote=~lynks;990551Call to undefined function tep_draw_form_with_function() in /var/www/freshspark/data/www/fran.freshsparkcreative.com/includes/templates/template_default/templates/tpl_product_info_display.php[/quote]

This means that you are using an oscommerce template with Zen Cart.. it is calling a function that doesn't exist in Zen Cart! It's nothing to do with Ceon URI Mapping.

All the best..

Conor
ceon

3 Feb 2011, 12:16 PM
#2376
shiff avatar

shiff

New Zenner

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

Re: Ceon URI Mapping (SEO)

Hi There,

Having a bit of trouble with EZ-pages.

I can re-name the URI's of categories and products perfectly, however when i try to auto-generate ones for my EZ pages such as

/shop/index.php?main_page=contact_us

It generates /shop/contact-us

and when i type that in in my address bar, it takes me to a blank page on my site that just has the heading 'Contact us', as well as the fact that the contact us button is still linked to p/index.php?main_page=contact_us

Any Suggestions?

Thanks in advance.

3 Feb 2011, 12:22 PM
#2377
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

shiff:

Having a bit of trouble with EZ-pages.

/shop/index.php?main_page=contact_us

This isn't an ez-page. EZ-pages have the format index.php?main_page=page&id=

For index.php?main_page=contact_us you must enter a record in the database manually according to the section of the docs "Adding a URI Mapping for Other Zen Cart pages".

All the best..

Conor
ceon

3 Feb 2011, 12:49 PM
#2378
shiff avatar

shiff

New Zenner

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

Re: Ceon URI Mapping (SEO)

Thanks for the help!

Managed to sort it out.

6 Feb 2011, 4:55 AM
#2379
ddezine avatar

ddezine

New Zenner

Join Date:
Jan 2011
Posts:
4
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I did a fresh install of zencart 1.39h and installed the ceon url addon. I renamed my admin and installed all of the files per the instructions. The ceon_url_mapping.php file that was in the files folder....admin/includes/functions/extrafunctions/ceon_url_mapping..... Once I install this file my admin is no longer accessible. I get a 404 error. When this file is deleted, my admin is back. Any help is appreciated. Has anyone had this problem?

6 Feb 2011, 12:36 PM
#2380
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

ddezine:

When this file is deleted, my admin is back. Any help is appreciated. Has anyone had this problem?

It sounds like you renamed your admin folder but forgot to update the value of DIR_FS_ADMIN in admin/includes/configure.php

All the best..

Conor
ceon