You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add some lines to my .htaccess to implement friendlier URLs, but rules I add on top of the provided .htaccess have no effect.
I'm sure my rules are correct, because I can observe the rewrite with the $_SERVER['REDIRECT_URL'] php variable.
I browsed the source code and here is what I noticed: the file that pico loads is derived entirely from $_SERVER['REQUEST_URI'] (found on these lines), and I'm sure that using this variable instead of $_SERVER['REDIRECT_URL'] is what is ignoring my rewrite rules.
I love how pico is small and barebones/concise, and I really want it to stay that way. Is it within pico's scope to support mod_rewrite? As I understand, the $_SERVER['REDIRECT_URL'] variable is an apache-specific variable, so that's another thing to consider: is pico meant to be portable across all web-servers? Or just on apache? If it's designed for portability, I guess I'll need to write a plugin to do this.
The text was updated successfully, but these errors were encountered:
jstamant
changed the title
Mod rewrite not used
Mod rewrite rules ignored
Oct 26, 2015
I'm trying to add some lines to my
.htaccess
to implement friendlier URLs, but rules I add on top of the provided.htaccess
have no effect.I'm sure my rules are correct, because I can observe the rewrite with the
$_SERVER['REDIRECT_URL']
php variable.I browsed the source code and here is what I noticed: the file that pico loads is derived entirely from
$_SERVER['REQUEST_URI']
(found on these lines), and I'm sure that using this variable instead of$_SERVER['REDIRECT_URL']
is what is ignoring my rewrite rules.I love how pico is small and barebones/concise, and I really want it to stay that way. Is it within pico's scope to support mod_rewrite? As I understand, the
$_SERVER['REDIRECT_URL']
variable is an apache-specific variable, so that's another thing to consider: is pico meant to be portable across all web-servers? Or just on apache? If it's designed for portability, I guess I'll need to write a plugin to do this.The text was updated successfully, but these errors were encountered: