Jump to content

Problem with www in address when using subfolders

Recommended Posts



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:



This work fine as well, but this does not:



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



Share this post

Link to post
Share on other sites



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...

Connecting to www.givensa.com[]: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...

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

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

22:39:13 ERROR 404: Not Found.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More