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

Ceon URI Mapping (SEO)

Locked

Views: 472,292

Results 801 to 820 of 2,913
This thread is locked. New replies are disabled.
12 Nov 2009, 10:25 AM
#801
conor avatar

conor

Passed

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

Ceon URI Mapping (SEO)

Hi,

sarabz:

My problem was that when the uri was enabled on the manufacturer pages, the "add multiple to cart" was not working. It is only a problem on the manufacturer pages. I do have the most current version of the module including the file you mentioned. It works correctly on the regular catalog pages, just not the manufacturer pages.

In that case I'm afraid I simply don't know what's going wrong, it works fine here.

All the best...

Conor
ceon

12 Nov 2009, 10:08 PM
#802
sckatlyns avatar

sckatlyns

New Zenner

Join Date:
Oct 2009
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,

Yes, they are supported.

Here is what I have. I commented it all out trying to debug it.

$Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $

This is used with Apache WebServers

The following blocks direct HTTP requests in this directory recursively

For this to work, you must include the parameter 'Limit' to the AllowOverride configuration

Example:

#<Directory "/usr/local/apache/htdocs">

AllowOverride Limit

'All' with also work. (This configuration is in your apache/conf/httpd.conf file)

This does not affect PHP include/require functions

Example: http://server/catalog/includes/application_top.php will not work

<Files *.php>

Order Deny,Allow

Deny from all

</Files>

RewriteEngine On

Don't rewrite mynewsite's directory

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

Don't rewrite admin directory

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

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

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,4}$

RewriteCond %{REQUEST_URI} .(html|htm|php)$ [NC]

Can you see what the problem is?

Thanks so much!
Kat

13 Nov 2009, 12:11 AM
#803
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

SCkatlyns:

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

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

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

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,4}$

RewriteCond %{REQUEST_URI} .(html|htm|php)$ [NC]

You shouldn't have RewriteCond[ition]s after the RewriteRule.

Apart from that I don't know what the problem would be.

All the best...

Conor
ceon

13 Nov 2009, 5:35 PM
#804
sckatlyns avatar

sckatlyns

New Zenner

Join Date:
Oct 2009
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,

OK, how does this look? I've uncommented what I think should be used. I'm not sure about any of the other things there.

$Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $

This is used with Apache WebServers

For this to work, you must include the parameter 'Options' to

the AllowOverride configuration

Example:

<Directory "/usr/local/apache/htdocs">

AllowOverride Options

</Directory>

'All' with also work. (This configuration is in the

apache/conf/httpd.conf file)

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

RewriteEngine On

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/Jf7dSh8J3v.* [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)

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

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} .(html|htm|php)$ [NC]
RewriteRule (.*) /index.php?%{QUERY_STRING} [L]

Thanks,
Kat

13 Nov 2009, 5:56 PM
#806
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

SCkatlyns:

I tried it and got it to work!!

I'm glad to hear that!

SCkatlyns:

Just one issue. When I apply it to the EZ pages, it doesn't change in the site.

That's not an EZ-Page you sent me a link to but a "define" page.. you can add a mapping for it by manually editing the database using software like PHPMyAdmin.. the instructions for this are int the documentation under "Other Zen Cart Pages".

All the best...

Conor
ceon

13 Nov 2009, 6:24 PM
#807
sckatlyns avatar

sckatlyns

New Zenner

Join Date:
Oct 2009
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Conor,

Well, I'm lost then because these all show up under EZ pages. They show as changed in admin, but the are not in the site.
Contact Us
Discount Coupons
Gift Certificate FAQ
Newsletter Unsubscribe
Ordering Information
Shipping & Returns
Site Map
Privacy Notice
Conditions of Use

This is an example of what is showing in the database. Is this not right?

/site-map 1 1 page NULL 8 NULL 301 2009-11-10

I'm lost now. Can you help?

Thanks,
Kat

13 Nov 2009, 6:37 PM
#808
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

SCkatlyns:

Well, I'm lost then because these all show up under EZ pagies.

EZ-Pages use the query string parameter id=XXX and main_page=page

So if you see main_page=contact_us then it is not a link to an EZ-Page you are looking at, which is what is confusing you.

If you are still unsure about this please send me admin details for your site via this link.

All the best..

Conor
ceon

13 Nov 2009, 6:52 PM
#809
sckatlyns avatar

sckatlyns

New Zenner

Join Date:
Oct 2009
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,

I sent it.

Kat

13 Nov 2009, 7:07 PM
#810
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Kat,

As I expected, you are misunderstanding how the URI Mapping works.

You can't just add an EZ-Page and then use an internal link to another Zen Cart page.

You have to manually add records into your database. The instructions for this are in the documentation.

The section you must read and use is

Specifying the current URI Mapping for any other Zen Cart page

(Part 1 applies for you).

For the Contact Us page the "main_page" variable should be set to "contact_us".

You should delete all those EZ-Pages you added as "internal link aliases" to the standard "other" Zen Cart pages (Contact Us, Discount Coupons, Gift Certificate FAQ etc.)

Have a nice weekend!

All the best...

Conor
ceon

13 Nov 2009, 7:17 PM
#811
sckatlyns avatar

sckatlyns

New Zenner

Join Date:
Oct 2009
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Conor,

You're right! I AM confused now.

I purchased the template and that is how it came. I then purchased the book on it and followed it.

Are you saying that I have to go into admin and delete all of those EZ pages under Tools -> EZ-Pages?

If I do that, how do I control where they go in the Information box in the left column? That was the only way I could find to make them appear there and in the order I wanted.

Kat

13 Nov 2009, 7:24 PM
#812
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping (SEO)

Kat,

You should probably start another topic on the subject as this is unrelated to this mod.. I would suggest that you first do a little reading throught the Zen Cart FAQs. Seach for EZ Pages so you can get a better understanding of what EZ Pages are and how best to use them.. You might also want to have a look at the Admin Editable sidebox contribution..

HTH

SCkatlyns:

Conor,

You're right! I AM confused now.

I purchased the template and that is how it came. I then purchased the book on it and followed it.

Are you saying that I have to go into admin and delete all of those EZ pages under Tools -> EZ-Pages?

If I do that, how do I control where they go in the Information box in the left column? That was the only way I could find to make them appear there and in the order I wanted.

Kat

13 Nov 2009, 7:31 PM
#813
sckatlyns avatar

sckatlyns

New Zenner

Join Date:
Oct 2009
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Well, I don't think it's really going to matter. As long as I have the categories and products working with your mod, the others won't matter.

I just tested it by turning the contact us page off in EZ pages and followed your instructions under Part 1. It still didn't work, so I will just forget it.

Thanks for your help, Conor,
Kat

13 Nov 2009, 7:33 PM
#814
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

SCkatlyns:

You're right! I AM confused now.

Sorry! :)

SCkatlyns:

I purchased the template and that is how it came. I then purchased the book on it and followed it.

Are you saying that I have to go into admin and delete all of those EZ pages under Tools -> EZ-Pages?

The ones that you were trying to link to "other" Zen Cart pages.. yes.. if you want to have mappings like "/contact-us" etc.

SCkatlyns:

If I do that, how do I control where they go in the Information box in the left column? That was the only way I could find to make them appear there and in the order I wanted.

You'll have to manually edit the template files for the sidebox.

Unfortunately discussing how to do that isn't appropriate for this thread.

Please search the forum or start a new thread for help about this.

Good luck in getting things sorted! (It shouldn't be too hard).

All the best...

Conor

14 Nov 2009, 3:24 AM
#815
bimo_in_bali avatar

bimo_in_bali

New Zenner

Join Date:
Jan 2009
Location:
Earth
Posts:
36
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,
Thank you for the really helpful mod.
I'm a newbie to php stuff and trying to understand the following explanation:

There are two ways to specify static URIs for a Zen Cart page.

1.The first is the most useful as it results in all links on the site to that page using the static URI instead of the standard dynamic Zen Cart URI (just as with products etc. using URI mappings).

  Please Note: Any query string parameters are still appended to the URI.

  Basically, this first method can be used to replace the likes of:

  index.php?main_page=products_all&disp_order=3

  with:

  /our-products?disp_order=3.
      * Use software such as PHPMyAdmin to add a new record to the ceon_uri_mapping table.
      * The URI mapping to be mapped from should be entered in the uri field. (Remember to begin the URI with a slash ‘/’).
      * 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 “1” to make this the “current” URI.
      * The Zen Cart page to be mapped to should be entered in the main_page field.
      * The date/time this URI mapping was added should be set in the date_added field (or just use the “NOW()” SQL function).
      * The query_string_parameters, associated_db_id and alternate_uri fields are not used, they must be left as “NULL”. The redirection_type_code is not used either so it doesn't matter what value it has (it can just be left at the default value of 301).

But still i'm confuse how to change/add anything in phpMyAdmin through my cpanel.

I know it's maybe too much to ask, but Is there a step by step instruction for a really newbie to do this?
eg: to change /index.php?main_page=contact_us
do this:..the explanation

All help would much appreciated.
Thanks in advance,
Bimo

14 Nov 2009, 8:17 AM
#816
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Bimo,

I'm glad you like the module and appreciate the nice comments. Unfortunately my level of support doesn't extend to a step by step guide through PHPMyAdmin but I thought I'd at least let you know that I did read your post. Hopefully you can get the help you need.

If not, I'd suggest simply searching the internet for guides on how to use PHPMyAdmin and MySQL databases in general.. everything you learn will be useful for the future so better now than never!

All the best...

Conor
ceon

15 Nov 2009, 8:18 AM
#817
roooot avatar

roooot

New Zenner

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

Re: Ceon URI Mapping (SEO)

HI Conor, Thank you for your great contribution.
That works perfectly with my site. The only thing I want to ask is if it works with Easy Populate contrib? cos I've tried, but no luck with that. Products uploaded by EP was not generate static URL automatically.
I know you are working on URI mapping manager which can fix all the problem. Waiting.........:smile:


LIXIAOYA China Wholesale

16 Nov 2009, 5:44 AM
#818
roooot avatar

roooot

New Zenner

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

Re: Ceon URI Mapping (SEO)

Thanks Conor, you are the best of the best!
If you need anything from china. I can get it for you with the lowest price from my store. https://www.lixiaoya.com

PS. I cannot send you a PM, cos your mailbox is fulllllllll.. :lookaroun

Thanks again.
Bruce

16 Nov 2009, 9:05 AM
#819
bimo_in_bali avatar

bimo_in_bali

New Zenner

Join Date:
Jan 2009
Location:
Earth
Posts:
36
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,
Thanks for replying. You're right! I'll browse the net to find the clue, sure it must be out there somewhere:D

Thanks again, Keep up with the good work:smartalec:

Bimo

17 Nov 2009, 4:32 AM
#820
new2u avatar

new2u

Zen Follower

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

Re: Ceon URI Mapping (SEO)

The line

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

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

is supposed to redirect
http://mysite.com/index.php to
http://mysite.com correct?