Hi guys, I have a new site and it doesn't yet have a .htaccess file. As far as I am aware I just open a txt file and input my codes then save as .htaccess and upload is this correct? Beyond that I would like all 404 pages to re-direct to the home page. Also I would like the naked url to redirect to www. Can you give me any help possible please? Thanks
This is Example for .htaccess.Try This #format php_value setting_name setting_value #example php_value upload_max_filesize 10M you could simply place these in the .htaccess file and save it.
Assuming your apache config allows for .htaccess then you are correct. In the root directory of your website create a .htaccess file and add the following: ErrorDocument 404 /index.php This assumes that your index page is index.php. You may want to replace this with /index.html, /index, or just /.