htaccess redirect

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

htaccess redirect

Postby crburchett » Fri Aug 27, 2010 5:56 pm

I have uncomment the section as shown below:

# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
RewriteCond %{HTTP_HOST} !^mydomain.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [QSA,L,R=301]

However the rewrite isn't working. I have purged the cache, but that didn't help. Any thoughts?

Thanks!
crburchett
 
Posts: 5
Joined: Wed Aug 25, 2010 4:03 pm

Advertisement

Re: htaccess redirect

Postby crburchett » Fri Aug 27, 2010 7:11 pm

OK..admittedly a newbie. I was able to straighten it out:

rewritecond %{http_host} ^mydomain.com [nc]
rewriterule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc]
crburchett
 
Posts: 5
Joined: Wed Aug 25, 2010 4:03 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests