beannguyen/bidbuyvn/master/Source/bidbuy/.htaccess - Htaccess File

beannguyen/bidbuyvn/master/Source/bidbuy/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

    # Rewrite index page
    RewriteRule ^trang-chu/(.+).html$ index.php?get=$1 [L]

    # Rewrite post entry
    RewriteRule ^p/(.+)/(.+).html$ product.php?category=$1&link=$2 [L]

    # Rewrite category url
    RewriteRule ^category/(.+)/(.+).html$ archive.php?id=$1&category=$2 [L]

    # Rewrite backend
    RewriteRule ^admin/(.*)$ dashboard.php?url=$1 [L]
    RewriteRule ^admin$ dashboard.php?url=$1 [L]

    ErrorDocument 404 /bidbuy/index.php?http_error=404
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache