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

Ceon URI Mapping (SEO)

Locked

Views: 472,098

Results 2,861 to 2,880 of 2,913
This thread is locked. New replies are disabled.
06 Jul 2011, 00:26
#2861
hara avatar

hara

Zen Follower

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

Ceon URI Mapping (SEO)

Just found a page link goes to wrong page with Custom 404 Error message after installing URI mapping. The URI is working fine.
I'm not sure if this is caused by .htaccess file. Please advise if I missing something?

06 Jul 2011, 02:33
#2862
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)

hara:

Just found a page link goes to wrong page with Custom 404 Error message after installing URI mapping. The URI is working fine.
I'm not sure if this is caused by .htaccess file. Please advise if I missing something?
and since you've provided NO information -- again (you know like the URL of the page link in question) how do you propose that anyone will be able to advise you??

06 Jul 2011, 03:01
#2863
hara avatar

hara

Zen Follower

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

Re: Ceon URI Mapping (SEO)

hara:

Just found a page link goes to wrong page with Custom 404 Error message after installing URI mapping. The URI is working fine.
I'm not sure if this is caused by .htaccess file. Please advise if I missing something?

It appears that the issue is related to .htaccess file. I renamed it htaccess_off temporarily and was able to view the right page. I have renamed it back to .htacess. I need to rewrite some part of codes in .htaccess. Hope get professional advise. Thank you.

06 Jul 2011, 05:32
#2864
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)

hara:

It appears that the issue is related to .htaccess file. I renamed it htaccess_off temporarily and was able to view the right page. I have renamed it back to .htacess. I need to rewrite some part of codes in .htaccess. Hope get professional advise. Thank you.
Still you've posted NO information which would allow anyone (professional or otherwise) to assist you.. URLs to th eproblem page and the contents of your .htaccess file would be.. well you know.. kinda useful...

06 Jul 2011, 13:32
#2865
hara avatar

hara

Zen Follower

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

Re: Ceon URI Mapping (SEO)

my .htaccess file content:

RewriteEngine On

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

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

Don't rewrite admin directory

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

Try to open
xxx.com/xxxxx.html

but get 404 error page

06 Jul 2011, 13:47
#2866
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

hara:

but get 404 error page

Sorry, I don't know why you want to rewrite .html extensions. And no clue whatsoever why you want to rewrite .php extensions.

All the best...

Conor
ceon

06 Jul 2011, 15:34
#2867
hara avatar

hara

Zen Follower

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

Re: Ceon URI Mapping (SEO)

conor:

Hi,

Sorry, I don't know why you want to rewrite .html extensions. And no clue whatsoever why you want to rewrite .php extensions.

All the best...

Conor
ceon

Thank you Conor!

06 Jul 2011, 17:13
#2868
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

hara:

Thank you Conor!

? Thank you for what?

All the best...

Conor
ceon

06 Jul 2011, 17:19
#2869
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)

conor:

Hi,

? Thank you for what?

All the best...

Conor
ceon:laugh::laugh: ......

06 Jul 2011, 17:52
#2870
hara avatar

hara

Zen Follower

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

Re: Ceon URI Mapping (SEO)

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

Thank you very much!!!

06 Jul 2011, 18:23
#2871
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

hara:

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

Thank you very much!!!

Thought that's what you meant but wasn't sure.. not a miond reader! ;)

Glad you're sorted.

All the best...

Conor
ceon

07 Jul 2011, 09:22
#2872
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Crystal,

Hope you're having a nice day!

DivaVocals:

:laugh::laugh: ......

I sent you the zip of v4.0.0rc1 on Tuesday but haven't received acknowledgement of its receipt?

I take it it got lost in your spam filters?

Let me know and I can resend to your e-mail address.

All the best...

Conor
ceon

07 Jul 2011, 15:35
#2873
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)

Hey Conor!!! waves

Sorry for the non-acknowledgment.. Been a little off the grid.. Had house-guests leftover from the holiday weekend, and finally got rid of the last of them yesterday!!!

I got it, and I have the PERFECT store I'm working on to test it out on.. Clean vanilla install.. It's a Zen Cart implementation with WordPress theme wrapper..:smile: (My own version of Zen Cart on WordPress -- the exact opposite of WordPress on Zen Cart) Should be a good place to really give your new version a workout!!:laugh::laugh:

But just for good measure I will test it on my generic vanilla test store too.. :laugh:

conor:

Hi Crystal,

Hope you're having a nice day!

I sent you the zip of v4.0.0rc1 on Tuesday but haven't received acknowledgement of its receipt?

I take it it got lost in your spam filters?

Let me know and I can resend to your e-mail address.

All the best...

Conor
ceon

07 Jul 2011, 15:45
#2874
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

DivaVocals:

Hey Conor!!! waves

waves back :)

DivaVocals:

Sorry for the non-acknowledgment.. Been a little off the grid.. Had house-guests leftover from the holiday weekend, and finally got rid of the last of them yesterday!!!

Fair enough.. I just thought it might have got stuck in a spam filter.

No rush, I've since tested the software on other servers. There's more to life than computers, hope you had a good weekend! :)

I've just sent you RC2.. just use it obviously instead of RC1.

DivaVocals:

I got it, and I have the PERFECT store I'm working on to test it out on.. Clean vanilla install.. It's a Zen Cart implementation with WordPress theme wrapper..:smile: (My own version of Zen Cart on WordPress -- the exact opposite of WordPress on Zen Cart) Should be a good place to really give your new version a workout!!:laugh::laugh:

But just for good measure I will test it on my generic vanilla test store too.. :laugh:

Good stuff.. just installed it on a site with Wordpress and the auto-exclusion functionality worked perfectly.. copying the example rewrite rule from the new Installation Check page to the .htaccess file had Ceon URI Mapping and wordpress working in harmony with no configuration needed. Good stuff!

Never actually used WP myself but glad to see that using v4 means that no messing about has to be done with list of excluded files etc.

Software works fine with FEC and other such modules now as well without any config.

Of course, please do let me know how you get on.. probably via e-mail rather than here is best.

All the best...

Conor
ceon

08 Jul 2011, 07:40
#2875
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Ceon URI Mapping (SEO)

Perhaps someone can let me know what I am missing.

This site was recently upgraded to 1.3.9h. It has the zen cart install in a directory /shop/ . This is for historical reasons and can't really be changed.

Here's the problem. Everything works fine until I try and add a htaccess line to rewrite to www. The entire htaccess in the /shop/ directory is :

# php_value session.auto_start 0

RewriteEngine On

# RewriteCond %{HTTP_HOST} !^www\.##########\.com$ [NC]
# RewriteRule ^(.*)$ http://www.##########.com/$1 [L,R=301]


# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/shop/ [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} !^/shop/eleanor [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/shop/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]

Evidently I am trying to uncomment two of those lines.

However when I do this everything continues to work fine except:

https://www.domain.com/shop/lamps - this works fine
domain.com/shop/lamps - this does not work

what happens with the second example is that the URL is rewritten to https://www.domain.com/lamps ( without the /shop/ ) which gives a 404 error.

Here is the section of configure.php ( with some stuff hashed out)

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://www.##########.com');
  define('HTTPS_SERVER', 'https://www.##########.com');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');

Got to say I am confused but maybe I have made an error in the installation. Without the www rule for htaccess the results are this:

https://www.domain.com/shop/lamps - this works fine
domain.com/shop/lamps - this works fine

08 Jul 2011, 10:01
#2876
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Nick

Try moving the .htaccess file to the root of the store and then change the Ceon URI Mapping rule appropriately (shop/index.php instead of index.php).

If that doesn't work then I'm afraid you'll have to post a new thread.. the problem you are having is nothing to do with Ceon URI Mapping.

Hope that helps.

All the best..

Conor
ceon

09 Jul 2011, 22:58
#2877
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Ceon URI Mapping (SEO)

Hey Conor,

thanks as always for your prompt reply. I understand why you say that it is not a Ceon thing but at the same time the only rewriting on the site is that group of rules. It's a bit weird.

Anyway, pragmatism eventually ruled the day and I changed the rules to:

RewriteCond %{HTTP_HOST} !^www\.starlessriver\.com$ [NC]
RewriteRule ^(.*)$ http://www.starlessriver.com/shop/$1 [L,R=301]

In other words added the directory in at that stage. Works fine - even though I am not sure why I had to do this and the rules actually seem wrong - ah well....

Thanks for your time

Nick

10 Jul 2011, 08:20
#2878
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

niccol:

thanks as always for your prompt reply. I understand why you say that it is not a Ceon thing but at the same time the only rewriting on the site is that group of rules. It's a bit weird.

Yes, but you have installed your own rewrite rule in addition to the Ceon one.. the one that you messed up with was your own one.. so Ceon URI Mapping was in no way to blame for that.

Just making sure others don't think there's a problem with our rule. :)

niccol:

Anyway, pragmatism eventually ruled the day and I changed the rules to:

Did you try moving the rules to the .htaccess fle below the shop folder as I suggested?

All the best...

Conor
ceon

10 Jul 2011, 09:31
#2879
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Ceon URI Mapping (SEO)

Conor,

First yes, I am a big admirer of this mod and have used it many times so definitely was not saying there was anything wrong with the standard rule. In my experience this is definitely the most solid rewriting module of the bunch.

Actually I have also used it many times with an extra rule to force www on all the URLs with no problem.

So, what I have here is definitely a install specific quirk. Yes, I did put the htaccess to root and had the same issue.

The problem was that the directory /shop/ was being lost in the rewrite to www from non-www . So, the hack solution was just to force that rewrite to add the /shop/ back in. It seems to work fine under all the circumstances I can come up with. And actually the non-www URLs are rarely seen by the user - search engines maybe.

10 Jul 2011, 10:18
#2880
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

niccol:

First yes, I am a big admirer of this mod and have used it many times so definitely was not saying there was anything wrong with the standard rule. In my experience this is definitely the most solid rewriting module of the bunch.

That's nice of you to say. Would you be interested in trying out 4.0.0RC2? I haven't gotten any feedback about it yet but am itching to release it as 4.0.0 final.

If so, please get in contact via this address.

niccol:

The problem was that the directory /shop/ was being lost in the rewrite to www from non-www . So, the hack solution was just to force that rewrite to add the /shop/ back in.

I realise what was happening... my guess was that possibly the $1 variable was being built relative to the current folder the .htaccess file was placed in, therefore missing the /shop/ part.

That is indeed strange behaviour you are seeing on that server.

Possibly setting

RewriteBase /

might avoid having to use the "kludge" you are using. It may have no effect though.. I don't know.. this does sound like something's up with the server, at some config level.

Of course, this isn't something that you need to worry about too much , life is short and the kludge will do.. I just find myself getting annoyed by wee niggly things like this and not knowing "why" the kludge was needed. :)

All the best..

Conor
ceon