Hi, here's what's working:
AddHandler php-stable .php
# 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
When I try to do non-www to www redirect (I've tried this a few ways and each time I get a 500 error)
so this is what doesn't work:
AddHandler php-stable .php
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
# 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
Is my logic right? Can't I just add those 2 mysite redirects?
I've done this a bunch of times on other sites but can't seem to get it right here.
Any suggestions?
[edited by: phranque at 2:17 pm (utc) on Feb 22, 2014]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]