Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: phranque
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
will be redirected to
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 ?
RewriteRule ^folder(/(.*))?$ /$2 [R=301,L]
Change folder in the above example to the name of your unwanted folder.
Also do I add it into the htaccess with the code thats already in there or do I add it over the exisitng code. And does it work with permalinks enabled ?
I added that line and got an internal error. I took the line out and the internal error persists. I cant work it out as I never changed anything else.
Ive had to disable the htaccess for the time being. Ive contacted my hosts to see what they make of it.
Very strange indeed.