Answer the question
In order to leave comments, you need to log in
Difficulties with htaccess file and links (blocking 12345.html)?
There is such a .htaccess file (see below), apparently it is configured to display links like
xxx.com/?p=17000
in the address bar
and load the _p=17000.html file from the root
Now I'm trying to put the 12345.html file in the root and type it in the address bar and takes me to the main page. Please help me set up htaccess so that it loads any files. But at the same time, the setting indicated above did not suffer.
#AddDefaultCharset UTF-8
DirectorySlash Off
# important!
# Options -MultiViews
RewriteEngine On
RewriteRule ^robots.txt$ - [L]
RewriteRule ^sitemap.xml$ - [L]
RewriteCond %{REQUEST_FILENAME} !/_routing.php$
RewriteCond %{REQUEST_FILENAME} !\.\S+$ [OR ]
RewriteRule ^(.*)$ _routing\.php\?$1 [QSA,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question