php - .htaccess rewrite leaves broken images


I have created a .htaccess file which cleans up my PHP query URLs.

Works well, but my images are broken and the index.php within the sub-cat folder

Any ideas how to fix these?

#Options +MultiViews
RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^([^\.]+)$ $1.php [NC,L]

RewriteRule ^(removephp-attheend)$ $1.php [NC,L]

ErrorDocument 404 /error-404.php
#error 404
RewriteRule    ^error/?$    error-404.php    [QSA,NC,L]

RewriteRule    ^category/sub-cat/([-0-9a-zA-Z]+) category/sub-cat/page.php?art_url=$1 [QSA,NC,L]

People are also looking for solutions to the problem: php - Invalid Scopes public_actions error on facebook api integration in codeiginiter


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.