handshakemedia
Member
Posted 10 months ago #
I can not for the life of me find understandable, step-by-step instructions on how to direct http://www.thehandshakemagazine.com to http://thehandshakemagazine.com. everything I've found so far is either uber-advanced or doesn't work, and any plugins that say taht they do such a thing turn out to be worthless. Can anybody help me out?
Will this link do the trick?
handshakemedia
Member
Posted 10 months ago #
Hey there. Whether this link will do the trick or not all depends:
Is it telling me that all I have to do is the following:
1. Open .htaccess in my root directory.
2. Drop in this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,L]
3. Save and re-upload .htaccess.
Poof? Done? Where do I put that code in .htaccess? Anywhere?
Thanks!
Yup, that should do it. It has apache redirect all browsers from http://www.anything.whatever to anything.whatever.
The author of that article (and I) both suggest putting that at the beginning of your .htaccess file.
Bah...
The forum made one of those examples a link, but I think you get the idea.
handshakemedia
Member
Posted 10 months ago #
Awesome. Before [# BEGIN WordPress] ?
Or after?
handshakemedia
Member
Posted 10 months ago #
Oh. Wait. This is already in my .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
What's going on there?
Before, but only to keep it separated from the WordPress rules. (It technically shouldn't matter)
That's WordPress's normal rules to enable pretty permalinks.
handshakemedia
Member
Posted 10 months ago #
Got it. It worked! Thanks for your help.