core icon indicating copy to clipboard operation
core copied to clipboard

Flight w/out .htaccess, is this possible?

Open mrsoto opened this issue 10 years ago • 4 comments

Hello. Is the a way to use Flight w/out setting rewrite rules?

Some thing like

http://host/index.php?q=/my/request/endpoint

Later

mrsoto avatar Sep 07 '15 00:09 mrsoto

Not currently, but it is something that I am planning to implement.

mikecao avatar Sep 08 '15 20:09 mikecao

@mrsoto I think if you modify flight/net/Request.php, it could be possible. @mikecao, is it possible? xD

fermino avatar Sep 08 '15 21:09 fermino

Without htaccess would be nice

pwFoo avatar Aug 06 '19 14:08 pwFoo

Is there a update since issue is opened? I tested /index.php/home and it seems to work?

Flight::route('/index.php/home', function(){
    echo 'Home Page!';
});

Not nice / clean urls, but best without htaccess? Or should some other features break by that "path"?

  • update* And how works the rewrite without append the path to index.php...?
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

Most systems set the clean url path as query string?

pwFoo avatar Aug 06 '19 16:08 pwFoo

Is this still needed in 2023?

n0nag0n avatar Jan 03 '24 21:01 n0nag0n

Is this still needed in 2023?

No.

krmu avatar Jan 03 '24 21:01 krmu

No

eydun avatar Jan 11 '24 23:01 eydun