Jump to content

.htaccess Error


gobbly2100

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/34848-htaccess-error/#findComment-165069
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.