Forum Moderators: phranque

Message Too Old, No Replies

Without www, it works, but without it, it doesn't?

         

Gary_King

4:56 am on Jul 26, 2006 (gmt 0)

10+ Year Member



Here's my .htaccess file for my website, [kinggary.com...] :

##### REWRITE
RewriteEngine On

### TEMPORARY INTERNAL REWRITES
RewriteRule ^europe(.*)$ /category/vacation/ [L]

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

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

When I go to http://example.com/europe , the redirect works, but if I go to http://www.example.com/europe , the redirect DOESN'T work.

Why is that? And how do I fix it?

Thanks in advance! :D

[edited by: jdMorgan at 1:36 pm (utc) on July 26, 2006]
[edit reason]
[1][edit reason] Example.com [/edit]
[/edit][/1]

Gary_King

5:06 am on Jul 26, 2006 (gmt 0)

10+ Year Member



Nevermind... problem solved.