-
-
Notifications
You must be signed in to change notification settings - Fork 245
Expand file tree
/
Copy path.htaccess
More file actions
28 lines (18 loc) 路 700 Bytes
/
Copy path.htaccess
File metadata and controls
28 lines (18 loc) 路 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#For removing extension as Options +MultiViews not working with RewriteRule
RewriteRule ^([a-zA-Z0-9_]+)$ $1.php [QSA,NC,L]
RewriteRule ^profile/([a-zA-Z0-9._@\-]+)$ profile.php?u=$1 [QSA,NC,L]
RewriteRule ^profile/ profile.php [QSA,NC,L]
RewriteRule ^groups/([0-9]+)$ groups.php?grp=$1 [QSA,NC,L]
RewriteRule ^groups/ groups.php [QSA,NC,L]
RewriteRule ^view_post/([a-zA-Z0-9]+)$ view_post.php?post=$1 [QSA,NC,L]
ErrorDocument 404 /Faiyaz/Instagram/404.php
#DirectoryIndex Options +Indexes
<FilesMatch ".(htaccess)">
order allow,deny
deny from all
</FilesMatch>
#Options +MultiViews
IndexIgnore *