Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

how to write 301 rewrite rule with wordpress website.

i.e. i have a website called and i want to redirect specific pages to directories ..

RewriteCond %{HTTP_HOST} ^$
RewriteRule ^deal/(.*)$ “$1” [R=301,L]
RewriteRule ^page/(.*)$ “$1” [R=301,L]
RewriteRule ^deal/view/(.*)$ “$1” [R=301,L]

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress