Created
January 26, 2015 00:17
ADG htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# Redirect to https (this causes an infinite loop??) | |
#RewriteCond %{HTTPS} !^on$ | |
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] | |
# Redirect old product urls | |
RewriteRule ^([a-z\-]+)/([a-z\-]+)/?(\d+)/([a-z0-9\-]+)/$ /product/$4/ [R=301,L] | |
# Redirect old blog image | |
RewriteRule ^uploads/wordpress/(\d+)/(\d+)/([a-zA-Z0-9_\-\.]+) /wp-content/uploads/blog/$1/$2/$3 [R,L] | |
# Redirect old category urls | |
RewriteRule ^jewelry/(.*)$ /category/jewelry/$1 [R=301,L] | |
RewriteRule ^glass-art/(.*)$ /category/glass-art/$1 [R=301,L] | |
RewriteRule ^bridal/$ /category/bridal/ [R=301,L] | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment