gobbly2100 Posted January 19, 2007 Share Posted January 19, 2007 I want to convert a site of mine to PHP and so I am trying to use a .htaccess file to redirect each page to the new one.When I use this I seem to get an "Internal Server Error 500"Any idea's on this one people? Quote Link to comment Share on other sites More sharing options...
whitelion Posted January 19, 2007 Share Posted January 19, 2007 Please post your code in here.We will fix help you. Quote Link to comment Share on other sites More sharing options...
gobbly2100 Posted January 19, 2007 Author Share Posted January 19, 2007 I just put these lines in it or add it to the bottom of an already made fileredirect 301 old_page.html new_page.phpI have tried a couple of different ones and dunno what it actualy should be so maybe you could point me in the right direction. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 20, 2007 Share Posted January 20, 2007 You have to provide an absolute url for the new url, the old url has to begin with a forward slash(/) eg:[code] redirect 301 /oldURL http://mysite.com/newURL[/code]So the following should now work:[code]redirect 301 /old_page.html http://mysite.com/new_page.php[/code]Read the [url=http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect]Apache documentation[/url] on the redirect directive. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.