• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
redirect old dynamic pages to new CI style pages

[eluser]Future Webs[/eluser]
Hi guys,

I dont normally post for help in here but after reading and searching for ages thought id give it a go.

I have my site working fine and now want to 301 redirect all the old urls from the old version of the site to the new via htaccess.

Im using the standard htaccess trick to remove the index.php file which works fine

RewriteEngine On
RewriteBase /

RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon.\ico)
RewriteRule ^(.*)$ /index.php/$1

$config['uri_protocol'] = 'AUTO';

Heres an example of how im trying to redirect an old dynamic page to my new style pages.

RewriteCond ^forum_thread\.php?id=([0-9]*) http://www.mysite.com/forum/thread/$1 [R=301]

That just gives me a 404 though.

I'm sure its something simple so what am I missing ?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.