Forum Moderators: phranque
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
Also looking through my logs, ask.com queried for 1$ which of course gave a 404, any ideas on what is going on?
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
#
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# BEGIN WordPress
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Jim
[edited by: jdMorgan at 1:43 am (utc) on Nov. 26, 2007]
And wouldn't you know it, the same thing happens to me, even taking into account what g1smd wrote towards the bottom.
I did modify the example, by removing the IfModules, as well as the reference to .htm since I'm only concerned with .php for the time being..
I'll keep poking around until I get it or cause my hosting provider to have a kernel panic? Heeh.
Jim
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
#
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(htm(l)?Šphp)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(htm(l)?Šphp)$http://www.example.com/$1 [R=301,L]
#
# BEGIN WordPress# END WordPress
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /index.php [L]
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Jim