i need the info about the htaccess and url rewriting
Nice, Create a blank php page in text editor
Copy the following code into the file:
Change "You have entered the wrong URL or clicked a broken link" to the message you want your visitors to see and replace "YourDomain" with your actual domain URL or website name.
Replace "ContactEmail" with your actual email address so that you will receive an email message when someone lands on the 404 page. Additionally, replace "Error Alert" with the subject you wish to see in the alert email.
Replace "ReturnEmail" with the address that will appear in the "From" or "Recipient" field in your email program. You may use your own email address.
Choose "Save" from the File menu and type in "404.php." Ensure that you select "All File Types" when saving.
Now open notepad and write:
save it---file name: .htaccess
save as types: All files
keep both the files in root directory of your site e.g. localhost/example.com/
hope it will help you.