russdev Posted March 9, 2011 Posted March 9, 2011 (edited) Just having a senior moment doing some htaccess 301 redirects and need to redirect following.. /component/tag/name.html to /tag/name The name changes every time so if did redirect 301 /component/tag/ /tag/ It would add the html on the end of the new tag etc which do not want it to do? Ideas as brain gone completely today. Russell Edited March 9, 2011 by russdev
carvjo Posted March 9, 2011 Posted March 9, 2011 Hi Russ - Free .htaccess Redirect Generator - this will create the file for you.. 1
russdev Posted March 9, 2011 Author Posted March 9, 2011 The problem is the html file extension had look at that generator but can't for life of me get right combo for it to work.
russdev Posted March 11, 2011 Author Posted March 11, 2011 Worked it out in the end after brain came back to me.. RedirectMatch 301 /component/tag/(.*).html /tag/$1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now