by
normis » Thu May 26, 2016 12:49 am
Thanks, the Nginx topic I already used to make my working rules. But since I have now made the routing setup, nothing seems to work correctly.
I have now working links like this, that load correct blog post and language, based on the URL:
- Code: Select all
http://MYDOMAIN.lv/obj.php?q=lv/ziguri
but although Prettyurls is enabled, and documentation says, this should work, it doesn't:
- Code: Select all
http://MYDOMAIN.lv/obj/lv/ziguri
The routing debug shows that there is nothing in the path to match, I wonder why? Maybe my Nginx config messes something up?
- Code: Select all
Path to match:
Trying route lv_obj:
Pattern: lv/{:page_name}
Regex: lv/(?P<page_name>[^/]+)
Failed!
Reason: Not a regex match.
But If this would be an Nginx issue, it wouldn't load the page at all. It does, it just doesn't want to see the path.
This is what it shows when all works (with the regular, non pretty url):
- Code: Select all
Path to match: lv/ziguri
Trying route lv_obj:
Pattern: lv/{:page_name}
Regex: lv/(?P<page_name>[^/]+)
Matched!
As you can see, "path to match" is empty when I use the Prettyurl style.
Documentation here does not say that I need anything special, just change the url ...