A
A
Andrew2015-09-05 21:46:40
PHP
Andrew, 2015-09-05 21:46:40

How to upload CNC pictures?

Hello, I found this code for .htaccess on the Internet:

RewriteEngine on
RewriteRule ^(.*)$ index.php?q=$1 [QSA,L]

After that, my links look like this: SITE_NAME/SCRIPT_FOLDER/FUNCTION_NAME/PARAMETER
Everything works fine, except that images are not loaded into the "FUNCTION_NAME/PARAMETER" material. Question: what to add to .htaccess so that images are loaded?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Defman21, 2015-09-05
@ntzch

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?q=$1 [QSA,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question