dmacleo
Verified User
- Joined
- Jun 21, 2012
- Messages
- 631
I want to get rid of htaccess used only for rewrite on one domain on server.
can this be done in the custom httpd.conf as described here
http://help.directadmin.com/item.php?id=3
or is this something I have to do in the main apache conf file.
I looked at this and at the custom virtual hosts knowledge base articles but neither really seemed to answer my question, and that may be due me not knowing how to phrase the question best.
the htaccess code I want to just add to apache is:
can this be done in the custom httpd.conf as described here
http://help.directadmin.com/item.php?id=3
or is this something I have to do in the main apache conf file.
I looked at this and at the custom virtual hosts knowledge base articles but neither really seemed to answer my question, and that may be due me not knowing how to phrase the question best.
the htaccess code I want to just add to apache is:
this is the code IP Board uses for FURLS for SEO.<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} .*\.(jpeg|jpg|gif|png)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /public/404.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>