Josh Posted November 20, 2016 Share Posted November 20, 2016 I want to change the "werkspace" subfolder to "community" without creating a lot of broken links. Does anyone know how to set up redirect rules so that all URLS with the subfolder "werkspace" get redirected to "community"? https://mediatemple.net/community/products/dv/204643270/using-htaccess-rewrite-rules Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
martyj Posted November 20, 2016 Share Posted November 20, 2016 Are you using apache? You could use mod_rewrite. Something like <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^workspace/(.*)$ community/$1 [R=301,L] </IfModule> I'm not 100% sure the exact syntax as I am not an apache expert. Check out this link for more info http://httpd.apache.org/docs/current/mod/mod_rewrite.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.