htaccess , can't access homepage

Multi tool use
Multi tool use


htaccess , can't access homepage



I'm trying to set locally a project that run on the web on a NGIX server. This is the htaccess i have downloaded:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~sitename/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~sitename/index.php [L]
</IfModule>



I'm trying to run it locally on an Apache server(on mamp) . It have placed the project in a folder on the server root:



http://localhost/sitename/



But i get a blank page.
I can access a specific internal page (and only that one) if i remove the tilde
~
Even without the tilde, i can't access the homepage of the project.
So what i'm doing wrong?
How the tilde works in this context ?


~



EDIT



my mod_rewrite is loaded/enabled





first question is mod rewrite activated in your mamp?
– Lars-Olof Kreim
Jul 3 at 7:34





You ask: "How the tilde works in this context ?"... We answer: why don't you simply read the documentation of the tool you use? It is of excellent quality and available with a simple google search for "apache mod_rewrite".
– arkascha
Jul 3 at 7:41









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

aarQ Z4TaMBWf t 6DlJqb3OMfRMCPnU,m,AndVp4wEoZGJKT,Pl KX3e,9Hn3I6,G0mf,ly
Ii6,J Ns,6tfd

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications