Answer the question
In order to leave comments, you need to log in
Edit htaccess file?
Such a question has already been asked here but there was no answer - nothing comes out
There is a script (user cabinet) with it such htaccess
AddDefaultCharset utf-8
## php_flag display_errors on
## php_value error_reporting 7
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www \.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteRule !.(gif|jpg|png|ico|swf|txt|js|css |zip|htc|ttf)$ rw.php [L]
I make a folder - main where I put the main html files of the site ( default.html main ) - I get 404 not found , I delete htaccess - the script does not work, the site works
I ask for advice on what to do well all looked no answer
thanks in advance
Answer the question
In order to leave comments, you need to log in
Options +FollowSymLinks
- allows you to navigate through symlinks, not really necessary - allows you
to do redirects
everything that starts with www, tobish if the site is entered with www
.
If not files with the listed extensions, then redirect to wr.php,
therefore there are no exceptions in these files for your default.html, and in general it should be strange in theory index.html
Therefore, if you need to exclude 1 single file, then it’s easier to do this
RewriteCond %{REQUEST_URI} !default.html
RewriteRule !.(gif|jpg|png|ico|swf|txt|js|css|zip|htc|ttf)$ rw.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question