Is there a way to setup a rewrite rule which would check to make sure that the "subdomain" used is www and only www? If another sub is used, I'd like the URL redirected to the www, merrily on its way.
If possible, could it be flagged "permanently moved" or whatever also? That might make search engines update their index, I hope.
Here are my current rules:
- Code: Select all
RewriteEngine On
## Disable viewing of .htaccess and config files.
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^config\.php$ - [F]
## No "www." is a bad thing.
RewriteCond %{HTTP_HOST} ^beckman-ministries\.com
RewriteRule ^(.*)$ http://www.beckman-ministries.com/$1 [R=permanent,L]
Whatever fix there is for my issue cannot interfere with what I'm already doing here.
Any advice or solutions would be much appreciated.