.htaccess

.htaccess

.htaccess

 
 

Example of URI Redirects in a WP Site:

[root@ca-web1 aiglebleu.org]# cat .htaccess 
# Redirects
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} (entag/)(.*)
RewriteRule ^(.*)entag/(.*)$ http://www.aiglebleu.org/en/$2 [NC,L]

RewriteCond %{REQUEST_URI} totem\ animals/
RewriteRule ^(.*)totem\ animals/$ http://www.aiglebleu.org/en/category/totem-animals/ [NC,L]
</IfModule>

# 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