Options -Indexes
RewriteEngine On
RewriteBase /funworld/

# وقتی خود دایرکتوری صدا زده می‌شود، برو به public/index.php
DirectoryIndex public/index.php
RewriteRule ^$ public/index.php [L]

# هر چیزی که فایل/فولدر واقعی نیست => public/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ public/index.php [QSA,L]
