Welcome Guest, Not a member yet? Register   Sign In
htaccess for pointed domain

Hi Friends

I have registered a domain on godday and using the hosting service on other service provider. First I have transfer the domain to the hosting provider one and then pointed it to a folder. Now according to the documentation I have included the following code in my htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
Now what I am getting is sometimes the index.php? appears on the urls and sometimes not.

pleas help if I am doing anything wrong.

Did you also remove index.php from $config['index_page'] inside the config file? (application/config/config.php)

(03-21-2016, 11:43 PM)Avenirer Wrote: Did you also remove index.php from $config['index_page'] inside the config file? (application/config/config.php)

Yes I already removed the index.php from the config index

I do not know why you developers keep using this code in your .htaccess files when it is not needed at all,
if your html documents are correct you do not needed it...

RewriteCond $1 !^(index\.php|resources|robots\.txt)

It can also cause your system to lock up with no errors displayed.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB