I know this comes up often on SO but I’m struggling to understand bits of it and hoping somebody can help.
I need to take the following:
http://www.xyz.com/news.room/showstory.php?storyid=123456
and create
http://www.xyz.com/newsroom/123456
http://www.xyz.com/news.room/
and create
http://www.xyz.com/newsroom/
http://www.xyz.com/files/pdf/uk/Wk51.pdf
and create
http://www.xyz.com/newsroom/convert/Wk51
in addition xyz.co.uk and xyz.org should also be rewritten to xyz.com and all should report back to the search engines as permanent redirects
I’m trying to do this in a htaccess file, that also has a standard CodeIgniter rewrite rule in it to remove the query strings.
Can anyone help me? I’ve tried several things but can’t get anything that works for everything! Also i’ve spent five hours on this and am slowly pulling my hair out!
Any help, pointing in the right direction etc.. would be appreciated.
Cheers
1 Answer