I have Yourls installed in my website, but it won’t open when I access my website.
Instead of showing my Yourls home page, it shows my website files (Directory Listing) every time I accessed it (http://felu.ga).
Then I checked the .htaccess file in htdocs, it consisted this:
`# BEGIN YOURLS
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /yourls-loader.php [L]
END YOURLS`
<br>The .htaccess in htdocs directory that suppose to override the rules of .htaccess in the root, but it doesn't work. So I add additional lines to the .htaccess in htdocs:<br>
`# BEGIN YOURLS
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /yourls-loader.php [L]
END YOURLS
BEGIN INDEX-FIX
Options -Indexes
DirectoryIndex index.php index.htmlEND INDEX-FIX`
<br>But instead of showing my Yourls website homepage, it redirects me to 403 error page. <br>Note: Yourls doesnt have index file by default, I tried to rename file yourls-loader.php to index.php but it's still not working.<br><br>I think this is happen because mod_rewrite isn't enabled, but I'm not sure<br>How can I solve this?<br>