Enter your keyword

Blog

New htaccess Code for WordPress Permalinks

For Root Directory

# BEGIN WordPress  
<IfModule mod_rewrite.c>  
RewriteEngine On
RewriteBase /  
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule . /index.php [L]  
</IfModule>  
# END WordPress

For Subdirectory

# BEGIN WordPress
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase /subdirectory/ 
RewriteRule ^index\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /subdirectory/index.php [L] 
</IfModule> 
# END WordPress

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.