How to remove the .php extension from the URL ? Ans : Add the following code in .htaccess file ====================== Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(+)$ $1.php ======================How to remove the .html extension from the...
Category: htaccess
.htaccess Generation Issues in wordpress
Fixing .htaccess Generation Issues in wordpress If your installation of WordPress does not generate a .htaccess file or if it does not write the new rules onto your existing .htaccess file then there are a couple reasons that could be...
Redirect domain to .cgi file
If you want to redirect your domain http://domain.co.uk to http://domain.co.uk/cgi-bin/test/subdirectory/test.cgi file then add the following rewrite rule in .htaccess file ==================== Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.domain\.co\.uk$ RewriteRule ^/?$ "http\:\/\/www\.domain\.co\.uk\/cgi-bin\/test\/subdirectory\/test\.cgi$1" ==================== Or ==================== http://domain.com to http://domain.com/cgi-bin/subdirectory/test.cgi then add the...
CodeIgniter redirection problem
If CodeIgniter is installed on the linux server and the .htaccess file is correct but your domain is not working properly then you need to set the "uri_protocol" in the "system/application/config/config.php" file is as follows. $config = "REQUEST_URI";