Redirect old URL to new URL |
My friend website had trouble so I code a new one for him (with Codeigniter FW, of course ). His old website didnt use codeigniter. Some Old site URL are SEO and he want me redirect them to the new site.
But I cant redirect old URL to new URL. Old URL is like : http://sample.com/?m=news&e=view&id=66 I completed remove old source in the Host. I want when someone click in that link, it will redirect to my new page: http://sample.com/en/news/redirect-url-66.html But idk how to do. I tried redirect with htaccess but it didnt work because the old URL had "?" character at the stat => it alway redirect to the homepage. Here my code Code: Options +FollowSymLinks Code: RewriteEngine on Sorry for my bad English. ----- Edit: I tried create a controller for that action and set that is default controller. It worked but my site_url and base_url were changed too. When I go to my page with site url: http://sample.com , it will redirect to the url I changed, how to set site_url/base_url back without default_controller ? |
Welcome Guest, Not a member yet? Register Sign In |