MyBB-Plugins Forums
[Solved] My Downloads .htaccess issue - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB 1.8.x (http://forums.mybb-plugins.com/Forum-MyBB-1-8-x)
+--- Forum: Support (http://forums.mybb-plugins.com/Forum-Support--44)
+--- Thread: [Solved] My Downloads .htaccess issue (/Thread-Solved-My-Downloads-htaccess-issue)



My Downloads .htaccess issue - erich199 - 12-15-2014

Hello,

I have installed the mydownloads plugin with any issues.

When I added the following to my .htaccess file to remove those pesky .php extensions from my url's i'm getting a blank page now.

Code:
RewriteBase /
# remove .php; use THE_REQUEST to prevent infinite loops
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP
RewriteRule (.*)\.php$ $1 [R=301]
# remove index
RewriteRule (.*)/index$ $1/ [R=301]
# remove slash if not directory
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} /$
RewriteRule (.*)/ $1 [R=301]
# add .php to access file, but don't redirect
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php [L]



No Permission

Unfortunately you do not have sufficient rights to view replies in this thread.