Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Create .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
saintly2k authored Dec 8, 2021
1 parent 4c14082 commit cd41755
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^home/?$ ?page=home
RewriteRule ^all/([0-9])/?(.*)/?$ ?page=all&pagination=$1&order=$2
RewriteRule ^new/?$ ?page=new
RewriteRule ^disc/(.*)/?$ ?page=disc&id=$1
RewriteRule ^search/(.*)/(.*)/?$ ?page=search&for=$1&pagination=$2
RewriteRule ^login/?$ ?page=login
RewriteRule ^logout/?$ ?page=logout
RewriteRule ^signup/?$ ?page=signup
RewriteRule ^user/comments/?(.*)/?$ ?page=comments&pagination=$1
RewriteRule ^user/favourites/?(.*)/?$ ?page=favourites&pagination=$1
RewriteRule ^user/uploads/?(.*)/?$ ?page=uploads&pagination=$1
RewriteRule ^user/token/?$ ?page=token

0 comments on commit cd41755

Please sign in to comment.