beingjungshahi/theexcursionnepal/master/admin/.htaccess - Htaccess File


RewriteEngine on

#RewriteCond %{HTTP_HOST} !^ [NC]
#RewriteRule ^(.*)$$1 [R=301,NC,L]

#RewriteBase /

RewriteCond $1 !^(index.php|images|css|js|fonts|uploads|robots.txt)

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

# UPDATE php default settings from htaccess
# If the problem persists with the two lines below
# You will have to contact your hosters -- some don't allow you to change values in php.ini

#php_value upload_max_filesize 5000000M
#php_value post_max_size 5000000M

# If you are getting 500 - Internal server error that means you don't have permission 
# to set these values by .htaccess. You have to contact your web server providers and 
# ask to set AllowOverride Options for your host or to put these lines in their virtual 
# host configuration file.

# What to do to correct this is create a file called php.ini and save it in the same 
# location as your .htaccess file and enter the following code instead:
# upload_max_filesize = “250M”
# post_max_size = “250M”

On Github License


Download PDF of Htaccess file