Welcome Guest, Not a member yet? Register   Sign In
Remove index.php without .htaccess
#1

It would be great to have no index.php in address without needing of .htaccess file with


Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

I don't like it.  Confused
Reply
#2

Not possible. How will the server know what it should do with the incoming request?
Reply
#3

(06-21-2017, 06:21 AM)krystian2160 Wrote: It would be great to have no index.php in address without needing of .htaccess file with


Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

I don't like it.  Confused

If you are using a nginx server, then you can do it without .htaccess, but then you need to configure the config file for nginx
Reply
#4

(This post was last modified: 06-21-2017, 07:56 AM by skunkbad.)

Like it or not, it's just the way Apache servers work.

If you don't want to use .htaccess, you could edit the apache conf file, or maybe if you're using virtual hosts edit the site's conf file. You're going to need to do something so the server knows what to do. It's not magic.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB