I've been developing my website using a local WAMP server, on my own laptop.
I just recently purchased a domain, and deployed my website there.
So far, everything works fine, except : the "Public_Html" folder on the Host-Server did not have a few files, which I thought should be there by default.
(1) .htaccess
(2) php.ini
(3) httpd.conf
The first two are no problem. I can simply create new ones myself (or, copy-paste the ones I currently use on my WAMP server)
However, the HTTPD.CONF
file is a mystery to me.
Firstly, I have no idea where it is located. The domain-hosting service I am using is linux-based (not that it matters, I guess)
Secondly, I could, of course, simply copy the httpd.conf
file I have now on my WAMP server. But, where would I copy it to ? I already copied it straight to the Public_Html
folder, but that solved nothing.
My reason for needing this HTTPD.CONF
is because, amongst other things, I need to modify many settings, the most important being : MOD_REWRITE
. I need to enable mod_rewrite
, so that I can properly configure the .HTACCESS
file.
I searched online, and found many references to this httpd.conf
, but nothing remotely resembling my situation
I contacted the so-called Customer Support service on my Domain Registrar. They said (and I quote) : if you want to make modifications to your domain configuration, create a file, write the configuration code there, and save the file as : .USER.INI
and then save this file in the Public_Html
folder".
Well, this solution did not sound right to me. But, I did it anyway. I copy-pasted the contents of my own httpd.conf
file into this new .user.ini
file, and saved it to the public_html
folder.
Result: still nothing.