RaoulAH
RaoulAH

Reputation: 21

.htaccess RewriteRule Problem: redirecting directory doesn't work

I have this simple .htaccess file:

RewriteEngine On
    
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^shop$ /apps/shop

So it should redirect this url
http://192.168.0.221:8085/shop
to that url
http://192.168.0.221:8085/apps/shop

But the server only gives Error 404.

Can't get it why?

Upvotes: 1

Views: 31

Answers (1)

RaoulAH
RaoulAH

Reputation: 21

The htaccess I edited was not in the document root, thanks to @arkascha for this hint.

Upvotes: 1

Related Questions