|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP - How to redirect a old .asp page to new .php page by .htacces
hi there
i have a client site whose site was in asp earlier. now the site is newly build in php. but when i search the company name in goggle some pages are indexed in asp till now. how can i redirect the asp pages to php pages. pls help me.... i want to redirect like this http://www.xyzcompany.com/about/default.asp to http://www.xyzcompany.com/your-company |
|
#2
|
||||
|
||||
|
What you're demonstrating in your example would require knowing every possible URL. However, you could simply redirect all .asp pages to their .php equivalent.The 301 (Permanently Moved) directive will instruct search engine spiders to update their listing with the new URL. Your visitors will be moved to the new site transparently. So the URL:
http://www.xyzcompany.com/about/default.asp would be redirected to http://www.xyzcompany.com/about/default.php
__________________
Scripting problems? Windows questions? Ask the Windows Guru! Stay up to date with all of my latest content. Follow me on Twitter! Help us help you! Post your exact error message with these easy tips! |
|
#3
|
|||
|
|||
|
Thanks for sharing, that' would be helpful in emergency.
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > PHP - How to redirect a old .asp page to new .php page by .htacces |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|