Jump to content

Redirect Community URL


Josh
 Share

Recommended Posts

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

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

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...