2017-03-12, 19:30:19
I have a question about my last post.
My .htaccess now looks like this
This is working but, is this OK or is there another way I should be writing this? I found out that the "from" URL matters if there's a trailing slash or not so I created these rules to cover both scenarios.
My .htaccess now looks like this
Code:
RewriteCond %{REQUEST_URI} /articles/diy-horizontal-warping-mill/
RewriteRule (.*) /articles/horizontal-warping-mill/ [R=302,L]
RewriteCond %{REQUEST_URI} /articles/diy-horizontal-warping-mill
RewriteRule (.*) /articles/horizontal-warping-mill/ [R=302,L]
RewriteCond %{REQUEST_URI} /articles/diy-simple-tension-device/
RewriteRule (.*) /articles/simple-tension-device/ [R=302,L]
RewriteCond %{REQUEST_URI} /articles/diy-simple-tension-device
RewriteRule (.*) /articles/simple-tension-device/ [R=302,L]
This is working but, is this OK or is there another way I should be writing this? I found out that the "from" URL matters if there's a trailing slash or not so I created these rules to cover both scenarios.