• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 07: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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.