# YOURLS rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /go/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ yourls-loader.php [L]
</IfModule>

# Paksa PHP jalan (optional tapi bagus)
AddHandler application/x-httpd-php .php

# Blok akses langsung ke config (biar aman)
<Files config.php>
Order allow,deny
Deny from all
</Files>