Welcome Guest, Not a member yet? Register   Sign In
.htaccess - Why the ?
#1

[eluser]spmckee[/eluser]
Greetings,

I have noticed that nearly every example of an .htaccess file used to eliminate the index.php from the URI reads as following:
Code:
RewriteRule ^(.*)$ index.php/$1 [L]

This however doesn't work for me. I have to add a "?" like so:

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

Have I missed something and will this cause issues down the line?

Thanks,
SP
#2

[eluser]Daniel Moore[/eluser]
Generally the server configuration your site is hosted on will determine whether or not you need to add the ?.

For more detailed information, see the link in my signature about removing the index.php using htaccess. A highly documented .htaccess file is included with most conceivable needs.




Theme © iAndrew 2016 - Forum software by © MyBB