I have a problem, just redone a homepage that was in ASP (ASPX) to a PHP.
The problem is that i have some links out there that gos like this http://www.example.com/work.aspx?jid=23 .
I need to take controll over the links a redriect them to the main page.
How to do that? I have created a work.aspx file that i have written som text just for test. When i try to change the file content to do a “Response.Redirect” the file dosent seam to update.. Why?
Regards
You’ll want to do that with .htaccess, not .aspx. Remove your .aspx file
Create a file called
.htaccessPut this in it:
This should take
www.example.com/work.aspx?jid=23and make itwww.example.com/work.php?jid=23It’ll also throw a 301 header telling search engines that the URL has been permanently moved.