Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect blog.domain.com to www.domain.com/wp/ using htaccess

Status
Not open for further replies.

dseaver

IS-IT--Management
Jul 13, 2006
467
I need to redirect " to "
This is what I have currently, and it is not working correctly

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^blog\.domain\.com
RewriteRule ^$ [URL unfurl="true"]http://www.domain.com/wp/$1[/URL] [L]
 
Options is not normally allowed with an AllowOverride. You don't need FollowSymLinks (rewrite requires FileInfo.)

I suspect if you comment out the Options line, it will work.
 
Removing the options line still does not work.

This is my first time using an .htaccess file before
 
The directory that the .htaccess MUST have FileInfo enabled in the httpd.conf file. Like so:

<Directory /var/ AllowOverride FileInfo
</Directory>


Or it will just ignore it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top