I am stuck and need help here..
firstly I want to create a search engine friendly url, but not working. I've been trying different methods : forcetype, path_info, mod rewrite.. but all of them are not working on my localhost.
Then I have an idea to test .htaccess, simply I am create 2 files on folder f:/xampp/htdocs/mytest :
1. .htaccess
- Code: Select all
ErrorDocument 404 404.php
2. 404.php
- Code: Select all
<?
echo "This is 404 error page!! .htaccess works !!";
?>
so, on folder mytest, there are only 2 files: .htaccess and 404.php.
when I try this on browser : http://localhost/mytest/index.php , I got an error :
- Code: Select all
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
07/17/08 21:33:54
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1
Ok, now I know my .htaccess is not loaded (?) or passed..
Any idea ?