-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.htaccess
More file actions
18 lines (14 loc) · 536 Bytes
/
Copy path.htaccess
File metadata and controls
18 lines (14 loc) · 536 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
RewriteEngine On
# HTTPS'ye yönlendirme
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# site.com/sitemap.xml
RewriteRule ^sitemap.xml$ sitemap.php [NC,L]
# site.com/valide
RewriteRule ^valide/(.*)$ index.php?p=$1 [QSA,L]
# site.com/profil/kullaniciadi
RewriteRule ^profil/([a-zA-Z0-9_-]+)$ profil.php?kadi=$1 [QSA,L]
# site.com/kullaniciadi/
# site.com/kullaniciadi
RewriteRule ^([a-zA-Z0-9_-]+)/$ profil.php?kadi=$1 [QSA,L]
RewriteRule ^([a-zA-Z0-9_-]+)$ profil.php?kadi=$1 [QSA,L]