L
L
lexstile2021-04-14 23:16:31
htaccess
lexstile, 2021-04-14 23:16:31

Is it possible to make folders/files in the site root accessible without templates etc.?

Task:
- If the file or folder exists at the root, then open them
- If not, then work by default, as WP works

Can I do this?
htaccess:

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

# END WordPress

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question