Welcome Guest, Not a member yet? Register   Sign In
routing a GET URL issue
#1

[eluser]Unknown[/eluser]
Hello there.

I made my old site to a new one by codeigniter.

But, there are some old URL my customer holding on their blog.

This causes a lot '404 page not found' when search engine spider running on their blog.

so i use route to solve this problem.

Code:
$route['qanda.php'] = 'qanda';
This one works fine.


Code:
$route['product.php\?pid=(.*)'] = 'product/$1';
But this one failed, appears 404 page not found.


Can anyone tell me how to solve this problem ?

Thanks a lot.
#2

[eluser]Aken[/eluser]
You should create 301 redirects in your .htaccess file, not use CI routes. CI routes will cause the search engines to think those URLs still actually exist, when in reality they have moved permanently.
#3

[eluser]Unknown[/eluser]
oh, I didn't think about this so far.

That will be a good solution for my new site.

thanks for the advice.




Theme © iAndrew 2016 - Forum software by © MyBB