I have one website, but I don’t want it, when I upload this website to a live server, it should request a username, password, website URL..etc. Something like a website installer. It works fine on the local system.
Now my problem is: I need to change the RewriteBase in the .htaccess file. But this file is at the root of the site. Therefore, I get permission to create a new file or edit / copy a file that is in the root.
Warning: rename (generate.htaccess, .htaccess): Permission denied
Warning: copy (.htaccess): could not open stream: Permission denied
What should I do. Please, help.
Thanks.
source share