Hi,
I'm trying to adapt the rewrite rules of OctoberCMS to httpd.conf to
avoid using apache-httpd.

Now everything is working ok with this rules:

-----------------
#example of directory that doesn't need to use rewrite.
location match "/themes/(.*)/assets/(.*)" {
request no rewrite
}

#index.php is the entry point of the application and runs the php fastcgi.
location match "index.php" {
fastcgi socket "/run/php-fpm.sock"
}

#all others locations rewrite to /index.php
location match "(.*)" {
request rewrite "/index.php"
}
-----------------

But for some reason the URLs are working like this:
example.com/forums/openbsd
Works ok, rewrites and everything is OK, but for some reason all the
links point to:
example.com/index.php/forums/openbsd
That also works the same as is the first case.

Now, this URLs are defined by the application, I guess that the
application understands that the base_url (I made the name up...) is
example.com/index.php and not example.com ?

Might this be an incompatibility between httpd and apache-httpd?

Cheers.
Elias.

Reply via email to