Tags » Htaccess

Disable index.php in CodeIgniter

Using .htaccess we can disable index.php from CodeIgniter URL

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1


PHP Relative Document Root

While making any PHP web app, especially the ones which are inside a certain directory e.g., http://localhost/webapp, a certain problem comes up. What should be the path of the CSS and JS files if the directory is unknown? 557 more words


Make index.php accessible from root folder in Laravel 4.2

Laravel is one of my favorite PHP frameworks. It’s flexible and awesome! One problem I had with initial setup of Laravel was, if I had to view my web app installed on an Apache server, I had to browse to the public directory to view my app. 91 more words


Add the www. (or) https in Your Domain

Hi Friends,

Add the www. (or) https in Your Domain

RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 
RewriteCond %{HTTP_HOST} ^domain.com 
RewriteRule ^(.*)$ http://www.domain.com/$1… 66 more words
PHP Developer

ipfilterHTX B4 Free Limited Version

>ipfilterHTX B4 Free Limited Version

is a compiled .htaccess with Deny Rules configured by our staff,

with special “Deny Rules” to block most notorious and infamous IP Range and/or unique IPs, 34 more words

htaccess, redirect to https for a specific file and to non-www https

I’ve a site to work and trying to make redirect by htaccess for few days. I’ve searched the net and found good works, especially in this site, but altough I’ve tried almost every possibilities, I’ve could not achieve what I want to do. 253 more words

Recent Questions - Stack Overflow