Forum Moderators: phranque
The url currently looks like
[domainname.com...]
The number at the end of this url is different for all links.
I want to show the link as
[domainname.com...] and also permantely redirect the url [domainname.com...] to [domainname.com...]
Can this be done?
This the PHP method for a 301 redirect.
Just put these lines at the beginning of file and give it a try.
<?
if(isset($_GET["ID"])) {$ID=$_GET["ID"];} else {$ID="1";}
header("HTTP/1.1 301 Moved Permanently");
header("Location:
http://www.domainname.com/vote/".$ID.".html");
exit();?>
It can't be done the way you're expecting to do it. See this thread for more info: [webmasterworld.com...]
Jim