diff --git a/README.md b/README.md index 2441d05c..ed1a4a45 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ### Xeorl - The All-In-One, Fully Free to Use Advanced Link Shortener and Management Tool - Powered by [@xodivorce](https://instagram.com/xodivorce) ✨ [![status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/) -[![version](https://img.shields.io/badge/version-v4.1.3-yellow.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/) +[![version](https://img.shields.io/badge/version-v4.1.4-yellow.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/) [![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)

diff --git a/htdocs/.htaccess b/htdocs/.htaccess index bb6c821a..57ae4f51 100755 --- a/htdocs/.htaccess +++ b/htdocs/.htaccess @@ -1,6 +1,9 @@ +Options -Indexes RewriteEngine On -RewriteCond $1 !^(index\.php) -RewriteCond %{REQUEST_FILENAME} !-f +# Check if the request is not for an existing directory or file RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)$ index.php?/$1 [L] \ No newline at end of file +RewriteCond %{REQUEST_FILENAME} !-f + +# Rewrite all other URLs to index.php with the 'url' parameter +RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] diff --git a/htdocs/assets/_header.php b/htdocs/assets/_header.php index 531f0b71..8084a40f 100755 --- a/htdocs/assets/_header.php +++ b/htdocs/assets/_header.php @@ -10,7 +10,7 @@ if (session_status() === PHP_SESSION_NONE) {