There's htaccess and mod_rewrite but no rewrite
Posted: Fri Dec 21, 2007 7:38 am
feyd | Please use
There would get a 404 Not Found error when I try to load old.php
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
(I'm on Mac OS10.5)
Ok, I ran phpinfo() and it shows that mod_rewrite module is loaded.
Next, I created .htaccess and put in the top directory
[syntax="apache"]RewriteEngine On
RewriteRule ^old\.php$ new.php
What gives? I don't think I need to amend httpd.The requested URL /~teohyc/htdocs/chilli/old.php was not found on this server.
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]