Jump to content

Problem with www in address when using subfolders


Recommended Posts

Hi

 

My store name is http://givensa.com and I have this config:

Friendly URL = Yes

Automatically redirect to Canonical URL = Yes

Disable apache multiviews = No

 

If I type:

http://www.givensa.com in the browser it correctly directs me to http://givensa.com

 

Now, say that I want to give a direct link to a category like this:

http://givensa.com/en/22-home

 

This work fine as well, but this does not:

http://www.givensa.com/en/22-home

 

Putting www in front in combination with using a subfolder like /en/22-home in this case brings me to a page-not-found.

 

I have tried to add this rule in .htaccess

 

RewriteCond %{HTTP_HOST} ^www.givensa.com$ [NC]

RewriteRule ^(.*)$ http://givensa.com/$1 [R=301,L]

 

But this does not make any difference, still the page-not-found when putting a www in the address.

 

Can anyone help with a solution for this, it does not seem like a strange requirement?

 

Thanks in advance

 

Johan

Link to comment
Share on other sites

Up...

 

Also adding this wget printout. Does this really look correct. It seems very strange that it is redirecting to /en/page-not-found no?

 

 

mac507516:trunk johan$ wget http://www.givensa.com/en/22-home

--22:39:12-- http://www.givensa.com/en/22-home

=> `22-home'

Resolving www.givensa.com... 91.146.98.115

Connecting to www.givensa.com[91.146.98.115]:80... connected.

HTTP request sent, awaiting response... 301 Moved

Location: http://givensa.com/en/page-not-found [following]

--22:39:13-- http://givensa.com/en/page-not-found

=> `page-not-found'

Resolving givensa.com... 91.146.98.115

Connecting to givensa.com[91.146.98.115]:80... connected.

HTTP request sent, awaiting response... 404 Not Found

22:39:13 ERROR 404: Not Found.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...