Getting a new .htaccess file?

So I want to add custom error pages, but when I remade my website yesterday in Dreamweaver, I completely wiped the public_html folder, so it wasn’t so cluttered and it was easy knowing what was what.

I now realise that I have deleted the .htaccess file, as I deleted everything. Is there any way I can get a new one without using the website builder to re-add the website then get the .htaccess file and delete and re-upload my whole site again? Could someone possibly give me a link for theirs, so I could download it, edit it and re-upload it to my site?

Thanks in advance!
Hypertypical

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

That´s the basic .htaccess file that´s generated by website builder

1 Like

Thanks! Also, does it go directly into the root folder?

1 Like

yupp, put it in the public_html folder and that´s it

1 Like

So, if I’m following this tutorial.

I know it may seem a bit unfair, but could you please show me what it should look like if my website is http://hypertypical.netai.net/.
Also, does the error.php go into the root folder? And can I add images and hyperlinks in my custom error page? Or could it even have my default website template? Like is it possible to make the error page in Dreamweaver or not?

Instead of working with that array solution i´d prefer the oldschool way of defining error pages inside .htaccess - > http://www.netmechanic.com/news/vol2/server_no6.htm
A lot easier and you don´t need to worry too much about styling the page. Could use your existing template, could use something completely different and make the site in DW too, then upload it.

1 Like

I just realised that I forgot to say thank you here… Thank you!

I’d give you karma but a box comes up saying I have to give it to other people before I give more to you :frowning: