redirect with htacess

1

I set up my htacess to get any words I type in the URL and look for the php file.

It works like this: www.mysite.com/city and it redirects to www.mysite.com/Search/City.php

The code looks like this:

 RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) Search/$1.php/ [QSA,L]

Well, what I need to do is, when the file is not found, the htacess has to send to error.html page

How do I do this?

    
asked by anonymous 05.07.2016 / 23:50

1 answer

0

You've tried to do this:

ErrorDocument 404 /erro.html

So when your file is not found, htaccess will redirect to a custom 404 error page instead of the default 404 apache page.

    
06.07.2016 / 02:26