Hi,
I need your assistance in redirecting my domain properly.
Problem: My domain 'letthemstare.com' doesn't redirect to 'www.letthemstare.com'
'www.letthemstare.com' - Works
'letthemstare.com' - Fails
1. My site is located within a folder named fashionblog.
2. I modified my httpd.conf through "Pre VirtualHost Include" as follows:
<Directory /home/letthems/public_html>
# Turn on rewrites.
RewriteEngine on
# Only apply to URLs on this domain
RewriteCond %{HTTP_HOST} ^(www.)?letthemstare.com$
# Only apply to URLs that aren't already under folder.
RewriteCond %{REQUEST_URI} !^/fashionblog/
# Don't apply to URLs that go to existing files or folders.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all those to insert /fashionblog.
RewriteRule ^(.*)$ /fashionblog/$1
# Also redirect the root folder.
RewriteCond %{HTTP_HOST} ^(www.)?letthemstare.com$
RewriteRule ^(/)?$ fashionblog/index.php [L]
</Directory>
The above redirects most of the things properly but letthemstare.com redirection still doesn't work.
4. Also, I don't understand why
RewriteCond %{HTTP_HOST} ^letthemstare.com$
doesn't redirect my domain (I've tried that)
I will appreciate your help here.
Kfir Silis
I need your assistance in redirecting my domain properly.
Problem: My domain 'letthemstare.com' doesn't redirect to 'www.letthemstare.com'
'www.letthemstare.com' - Works
'letthemstare.com' - Fails
1. My site is located within a folder named fashionblog.
2. I modified my httpd.conf through "Pre VirtualHost Include" as follows:
<Directory /home/letthems/public_html>
# Turn on rewrites.
RewriteEngine on
# Only apply to URLs on this domain
RewriteCond %{HTTP_HOST} ^(www.)?letthemstare.com$
# Only apply to URLs that aren't already under folder.
RewriteCond %{REQUEST_URI} !^/fashionblog/
# Don't apply to URLs that go to existing files or folders.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all those to insert /fashionblog.
RewriteRule ^(.*)$ /fashionblog/$1
# Also redirect the root folder.
RewriteCond %{HTTP_HOST} ^(www.)?letthemstare.com$
RewriteRule ^(/)?$ fashionblog/index.php [L]
</Directory>
The above redirects most of the things properly but letthemstare.com redirection still doesn't work.
4. Also, I don't understand why
RewriteCond %{HTTP_HOST} ^letthemstare.com$
doesn't redirect my domain (I've tried that)
I will appreciate your help here.
Kfir Silis