
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
None | size: 0.79 KB | hits: 14 | expires: Never
.htaccess in wordpress site issue
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
#If the file requested is index.php from the current folder(here: blog)
#do not do anything
RewriteRule ^index.php$ - [L]
#if other requests are not regular files or directories,
#redirect it to /blog/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-l
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^(.*)$ www.mysite.com/$1 [L,R=301]