Hello,
If I place the following .htaccess code, I'm unable to access the admin area http://domain.com/admin/ It redirects me back to the main page.
As soon as I remove the .htaccess code, I am then able to access the .htaccess page, but the the pages on the main sites are not redirecting properly.
Thank you.
If I place the following .htaccess code, I'm unable to access the admin area http://domain.com/admin/ It redirects me back to the main page.
Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.+)\~s$
RewriteRule ^(.*) stats.php?u=$1 [L]
RewriteCond %{REQUEST_URI} ^(.+)\~d$
RewriteRule ^(.*) delete_file.php?u=$1 [QSA,L]
RewriteCond %{REQUEST_URI} ^(.+)\~i$
RewriteRule ^(.*) share_file.php?u=$1 [QSA,L]
RewriteCond %{REQUEST_URI} ^(.+)\~f$
RewriteRule ^(.*) view_folder.php?f=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !\.html$
RewriteRule ^(.*) file_download.php?u=$1 [QSA,L]
RewriteRule ^(.*).html$ $1.php [L]
Thank you.