Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Ceon URI Mapping (SEO)

Locked

Started by conor on 14 Jan 2009, 11:25 AM · Views: 473,810

Results 121 to 140 of 2,913
This thread is locked. New replies are disabled.
27 Mar 2009, 9:41 AM
#121
gerjan avatar

gerjan

New Zenner

Join Date:
Dec 2007
Posts:
74
Plugin Contributions:
0

Post #121 by gerjan

Gerjan:

Hi Conor,

As I mentioned by PM, everything is working fine. But have a "little":smile: problem.

I was working a friends webshop and he is using an extra domain name. In the htaccess there is this redirect for it but when uri mapping rules are active, this redirect doesn't work. Here's the htaccess (as you can see uri-mapping rules are inactive now):

RewriteEngine On
#Rule-0

Don't rewrite any files ending with .[xxxx], except for scripts/HTML files

#RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,4}$ [OR]
#RewriteCond %{REQUEST_URI} .(php|xml|html|htm|aspx)$ [NC]

Don't rewrite cpanel directories

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

Don't rewrite admin directory

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

Don't rewrite editors directory

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

Don't rewrite payment pages/callback handlers

#RewriteCond %{REQUEST_URI} !/googlesitemap.php.* [NC]
#RewriteCond %{REQUEST_URI} !/ideal_callback.php.* [NC]
#RewriteCond %{REQUEST_URI} !/ipn_main_handler.php.* [NC]
#RewriteCond %{REQUEST_URI} !/iridium_3d_secure_iframe.php.* [NC]
#RewriteCond %{REQUEST_URI} !/localities_remote_loader.php.* [NC]
#RewriteCond %{REQUEST_URI} !/nochex_apc_handler.php.* [NC]
#RewriteCond %{REQUEST_URI} !/protx_direct_3d_secure_iframe.php.* [NC]
#RewriteCond %{REQUEST_URI} !/realex_remote_3d_secure_iframe.php.* [NC]

Handle all other URIs/file types (php|html|htm etc.) using Zen Cart (index.php)

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

#Rule-1
RewriteCond %{HTTP_HOST} ^niels-slaapcomfort.nl$
RewriteCond %{REQUEST_URI} !^/nielsslaapcomfort
RewriteRule (.*) /nielsslaapcomfort/$1

#Rule-2
RewriteCond %{HTTP_HOST} ^www.niels-slaapcomfort.nl$
RewriteCond %{REQUEST_URI} !^/nielsslaapcomfort
RewriteRule (.*) /nielsslaapcomfort/$1

I already asked the the isp but they could not tell me what the problem could be. I used their hosting manager wich automaticly can write redirects an I also tried manually but without succes. Also changing the sort-order of rulenumbers didn't make any difference. As you already now I'm not very technical so that's why I and up here :wink:

Hope you can give me some advice...

Thanks in advance, Gerjan - The Netherlands

Sorry for the mess but I forgot something. When I type the url "nielsslaapcomfort" I end up on the main page of the shop.
In the folder of "nielsslaapcomfort" there is also an index.php. Maybe this is part of the problem and should I add:

#RewriteCond %{REQUEST_URI} !/nielsslaapcomfort/index.php.* [NC] ?
...

27 Mar 2009, 9:43 AM
#122
conor avatar

conor

Passed

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

Post #122 by conor

Hi Gerjan,

Gerjan:

I also use IH2, everything is working fine. I only use IH2 to get optimal resolution of the images wich IH2 does automaticly.

Thanks for that confirmation. I checked and image handler still does add .jpg etc. to the end of the image names so I don't think it's the URI mapping module causing the problem for MickMo.

Consequently I'll be going ahead with a 3.2.1 release now!

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Mar 2009, 11:02 AM
#123
gerjan avatar

gerjan

New Zenner

Join Date:
Dec 2007
Posts:
74
Plugin Contributions:
0

Post #123 by gerjan

conor:

Hi Gerjan,

How are you? :)

I'm fine, thanks for asking. Hope you're ok too..:) Sometimes all of this drives one crazy....

conor:

If it doesn't work please e-mail me rather than posting here as this is obviously server specific and lots of rewrite rules being posted in this thread obscures the posts about the module itself!

I'll keep that in mind.

It worked out fine! Thank you for your quick response!
I already gave the advice of hosting an extra server/domain for this site but it will cost extra :) and that's what he didnt want. But it works fine now, he's happy.

Have a nice weekend!

27 Mar 2009, 11:24 AM
#124
conor avatar

conor

Passed

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

Post #124 by conor

Hi Gerjan,

Gerjan:

Sometimes all of this drives one crazy....

lol As I said, I really didn't expect to be learning about Rewrite Rules like this.. I suppose it's good that I am though, I'll be able to answer any future questions that bit easier! :)

Glad that everything's working as expected now.

About to post the 3.2.1 release.

Gerjan:

Have a nice weekend!

It seemed so far away all week, I totally forgot about it until you said.. gotta speed up and get everything done so I can relax.. thanks for reminding me, have a good weekend yourself!

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Mar 2009, 11:43 AM
#125
conor avatar

conor

Passed

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

Post #125 by conor

Hi,

A new version of the module is available.

This release contains an important bugfix.

ALL USERS MUST UPGRADE!

Changes from version 3.2.0:

[BUGFIX] The module was not compatible with Zen Cart's page_not_found/404 functionality.
[UPDATED] Default Whitespace Replacement Character for auto-generated URIs changed from a single underscore to a dash. (The primary reasons for this are that dashes are easier to find on the keyboard and type in for most people and dashes are more clearly read in underlined links).
[UPDATED] Documentation updated to use a single dash as the Whitespace Replacement Character.
[UPDATED] Documentation updated to make various information a little bit clearer and/or more specific.

Changes from 3.0.2:

[ADDED] Ability to specify the current URI mapping for a manufacturer directly in the admin added.
[UPDATED] Support for mapping manufacturers to static URIs added to link generation and page identification functionality.
[UPDATED] Database format updated to use a separate field for query string parameters when setting up mappings for other Zen Cart pages.
[BUGFIX] For versions 3.0.0 to 3.0.2, the links to the home page could go to a category or product page instead of the home page as the module was using an ambiguous SQL query.
[BUGFIX] Static URIs for categories were overriding the manufacturer display functionality of Zen Cart as they have a similar dynamic URI structure. Fixed by new manufacturer handling code.
[UPDATED] Documentation completely rewritten. Installation documentation made simpler, layout of documentation made clearer, table of contents added to the configuration documentation
[ADDED] New section added to the configuration documentation to help with setting up a working rewrite rule for the server and information about the new format for setting query string parameters added.

Upgrading from 3.2.0 to 3.2.1 should be quick and easy as no changes have been made to the core files the module requires to be modified.

Upgrading from 3.0.2 to 3.2.1 is slightly more involved as the includes/functions/html_output.php file was changed between 3.0.x and 3.2.x.

Please follow the upgrading instructions.

Please take special note of the section "Check/Change the URI Parts for standard Zen Cart pages related to a Product" as you may need to make a [simple] change to the admin languages file(s) for the module.

Enjoy the new version, there are no known issues with the module now (thankfully! ;) ).

Download now from Ceon

(Module has been submitted to downloads area but Zen Cart team are very busy at the minute).

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Mar 2009, 6:26 PM
#126
mickmo68 avatar

mickmo68

Zen Follower

Join Date:
Apr 2008
Location:
Boston
Posts:
129
Plugin Contributions:
0

Post #126 by mickmo68

I'll install Image Handler here myself to see but I don't see how changing the URI would have any effect on whether the additional images are shown or not.
I also use IH2, everything is working fine.
Thank you Gerjan and Conor for going the extra mile with patience. I upgraded to 3.2.1 and reloaded IH2 and everything is fine. Again, thank you for your efforts.:clap:

27 Mar 2009, 6:33 PM
#127
conor avatar

conor

Passed

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

Post #127 by conor

Hi,

Mickmo68:

I upgraded to 3.2.1 and reloaded IH2 and everything is fine. Again, thank you for your efforts.

No problem. I'm glad it's all working for you now (and that 3.2.1 is out so there are no more bugs to sort out [that I know of!]).

Have a good weekend!

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

29 Mar 2009, 11:54 AM
#128
diverpeter avatar

diverpeter

New Zenner

Join Date:
May 2008
Posts:
35
Plugin Contributions:
0

Post #128 by diverpeter

Hi Conor,

It is a great module that you've got there! Thanks.

I had been trying it out on the server and most of the pages works fine other than the default index.php. I get a page not found 404 when ever I client on the home.

You will be able to see it at http://max.dotheprojectright.com/seo/

my htaccess looks like the following, any idea at all:

RewriteEngine On

ONLY rewrite URIs beginning with /seo/

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

Don't rewrite editors directory

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

Don't rewrite payment pages/callback handlers

(Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)

RewriteCond %{REQUEST_URI} !^/seo/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/realex_remote_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/seo/index.php [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]

Have Fun. Keep it Zennish!

Visit My Zen Cart Blog at Zen48

29 Mar 2009, 12:32 PM
#129
conor avatar

conor

Passed

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

Post #129 by conor

Hi,

diverpeter:

I had been trying it out on the server and most of the pages works fine other than the default index.php. I get a page not found 404 when ever I client on the home.

I'm afraid I can't think of any reason for this problem occurring.

One thing I can say is that there's no real reason to have the following in the rewrite rule, I'm not sure why you added it:

RewriteCond %{REQUEST_URI} !^/seo/index.php [NC]

All the best..

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

29 Mar 2009, 1:10 PM
#130
diverpeter avatar

diverpeter

New Zenner

Join Date:
May 2008
Posts:
35
Plugin Contributions:
0

Post #130 by diverpeter

conor:

Hi,

I'm afraid I can't think of any reason for this problem occurring.

One thing I can say is that there's no real reason to have the following in the rewrite rule, I'm not sure why you added it:

RewriteCond %{REQUEST_URI} !^/seo/index.php [NC]

> 
> All the best..
> 
> Conor
> [Ceon](http://dev.ceon.net)

that was a mistake, I was going a lot of try and error.... 
Thanks for your input anyway, I guess I will have to do more.

Have Fun. Keep it Zennish!

Visit My Zen Cart Blog at Zen48

29 Mar 2009, 1:19 PM
#131
conor avatar

conor

Passed

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

Post #131 by conor

Hi,

diverpeter:

that was a mistake, I was going a lot of try and error....
Thanks for your input anyway, I guess I will have to do more.

Actually, I have realised that the page_not_found code I added into version 3.2.1 must be causing this error. I think I know exactly how and why!

Please get in contact with me privately so I can send you an updated file for you to test to see if this fixes your problem.

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

29 Mar 2009, 1:32 PM
#132
diverpeter avatar

diverpeter

New Zenner

Join Date:
May 2008
Posts:
35
Plugin Contributions:
0

Post #132 by diverpeter

conor:

Hi,

Actually, I have realised that the page_not_found code I added into version 3.2.1 must be causing this error. I think I know exactly how and why!

Please get in contact with me privately so I can send you an updated file for you to test to see if this fixes your problem.

All the best...

Conor
Ceon

This is a great news, I just post you with a message there.

Peter

Have Fun. Keep it Zennish!

Visit My Zen Cart Blog at Zen48

29 Mar 2009, 8:49 PM
#133
marg avatar

marg

Totally Zenned

Join Date:
Mar 2004
Posts:
642
Plugin Contributions:
0

Post #133 by marg

I'm having the same problem - index.php - Page not found
Newest version of mod 3.2.1

29 Mar 2009, 9:20 PM
#134
johnnylazerball avatar

johnnylazerball

New Zenner

Join Date:
Aug 2008
Posts:
29
Plugin Contributions:
0

Post #134 by johnnylazerball

Connor,

I really like the your concept!

I have been using SEO and have had decent success.

I have just installed your mod and for the life of me I can't get it to work. I have about 20 zen cart sites that I want to put it on but I have to get one to work.

It could be the apache server set up though I have used .htaccess before.

The site is https://www.zencart-customization.info .

I just don't know what to do next. Please get back and give me an idea of what to try next.

Thanks,
Johnny

29 Mar 2009, 10:52 PM
#135
johnnylazerball avatar

johnnylazerball

New Zenner

Join Date:
Aug 2008
Posts:
29
Plugin Contributions:
0

Post #135 by johnnylazerball

Conor,
I have up graded but still seem to be missing something

30 Mar 2009, 10:56 AM
#136
gerjan avatar

gerjan

New Zenner

Join Date:
Dec 2007
Posts:
74
Plugin Contributions:
0

Post #136 by gerjan

Sorry to border you again Conor but I think I found another issue...

Peolple who use Google Analytics (module) unfortunately do not have any results anymore (just like me). I've located the files and will test the rules in htacces. To be continued....

If it works fine I'll send you the rules for htacces.

30 Mar 2009, 12:25 PM
#137
conor avatar

conor

Passed

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

Post #137 by conor

Hi,

johnnylazerball:

I have up graded but still seem to be missing something

I'm afraid your posts are completely ambiguous! What exactly do you think is going wrong? Your site seems fine to me!

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Mar 2009, 12:36 PM
#138
conor avatar

conor

Passed

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

Post #138 by conor

Hi Gerjan,

Gerjan:

Sorry to border you again Conor but I think I found another issue...

I've looked into this and I don't see how the module can affect Google Analytics. All it does is call javascript from another site (google's).

Are you sure something else isn't going wrong on your server, unrelated to the Ceon URI Mapping module?

All the best...

Conor
Ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Mar 2009, 12:56 PM
#139
gerjan avatar

gerjan

New Zenner

Join Date:
Dec 2007
Posts:
74
Plugin Contributions:
0

Post #139 by gerjan

Ok, but data is missing from the day I installed this mapping module. There are three php-files that Analytics uses so I thought these files needed rewrite rules;

  • includes/templates/YOURTEMPLATE/common/tpl_footer_googleanalytics.php
  • includes/templates/YOURTEMPLATE/jscript/jquery_googleanalytics_outgoing.php
  • includes/templates/YOURTEMPLATE/jscript/jscript_googleanalytics_outgoing.php

I think I'm using an older/different version. The other site I was working on also uses analytics but doesn't use these files and analytics is working fine. I will see if rewrite rules will take effect, otherwise I will try to upgrade my analytics.

30 Mar 2009, 1:16 PM
#140
johnnylazerball avatar

johnnylazerball

New Zenner

Join Date:
Aug 2008
Posts:
29
Plugin Contributions:
0

Post #140 by johnnylazerball

Conor,

I had re installed the entire website and Ceon by the time your time caught up with mine.

I had tried to upgrade to newer version but data base would not accept it.

After re installation of entire website and Ceon, Ceon seems to work fine. Will be working more with it today.

Thanks for the speedy response