Msg#: 4029553 posted 9:06 am on Nov 22, 2009 (gmt 0)
If this is posted in the wrong section could the moderators please move it and leave a redirect or something to alert me of where to find it on my return.
Im currently on with a project to simplify my website and bring all my content into 1 database. The downside of this is that quite a few of my urls will change and therefore I need a 301 redirect for this. This is the type of url I am trying to redirect
As you can see, the sub folder "north-east-fishing-news" will be removed from the url and all post files will now reside in the root. There are roughly 1000 similar urls that need redirecting in the same way. Is there a simple piece of code I can put in my htacess to do this please ?
Msg#: 4029553 posted 12:07 pm on Nov 22, 2009 (gmt 0)
I added your code to the htaccess in my root. Its Not currently working. I am not too clued up on htaccess. I am wondering why it doesnt work. Could your suggested code be interfered with by other already existing code in my htaccess. Or could it be that the htaccess in the subfolder is overruling the htaccess in my root ?
Msg#: 4029553 posted 11:44 pm on Nov 22, 2009 (gmt 0)
you must clear your cache before testing any changes. the order of things is important. you should definitely be using a tool that will show you request and response headers. are you doing any redirects in the apache config file? are you getting a single 301 response or is there a chain of redirects? are you doing any internal rewrites? i would suggest you post an exemplified version of your .htaccess file in the Apache forum with a description of the response/redirect chain you get from the server.