generated from danielhoover/baseproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
21 lines (16 loc) · 847 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<IfModule mod_rewrite.c>
RewriteEngine On
#adapt this following line to your path if necessary
RewriteBase /webdev-project-snake
##
# Change the RewriteBase if your project is in a subdirectoy and
# the rewrite rules are not working properly. Usage examples:
#
#RewriteBase /uebung04/aufgabe02 # we assume url is http://localhost/uebung04/aufgabe02
#RewriteBase /aufgabe02/ # we assume url is http://localhost/aufgabe02
RewriteRule ^/?api/(.*)$ api.php [L] #adapt this line to your path if necessary
RewriteCond %{REQUEST_FILENAME} !\.(htm|php|js|css|map|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|mp4|webm|ogv|mp3|ogg|oga|eot|otf|tt[cf]|woff2?|svgz?|pdf|gz)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L] #adapt this line to your path if necessary
</IfModule>