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
And i access any of generated urls that look like:
http://domain.com/yii-basic/abc/48880/some-slug
everything works, but when adding the trailing slash
http://domain.com/yii-basic/abc/48880/some-slug/
it goes to 404.
Now i understand that maybe yii is treating this as a suffix, but is wrong.
Urls with or without trailing slashes must be both loaded.
If i don't use trailing slashes and my site is by any reason accessed with trailing slashes (links back from various sources, i.e: wordpress) then i can't load any page.
If on the other hand i use trailing slash as a suffix then any incoming link without a trailing slash goes to trash, this is weird behavior which needs fix :)
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
The way url manager handles urls with a trailing slash is a bit wrong.
If i use a configuration like:
And i access any of generated urls that look like:
everything works, but when adding the trailing slash
it goes to 404.
Now i understand that maybe yii is treating this as a suffix, but is wrong.
Urls with or without trailing slashes must be both loaded.
If i don't use trailing slashes and my site is by any reason accessed with trailing slashes (links back from various sources, i.e: wordpress) then i can't load any page.
If on the other hand i use trailing slash as a suffix then any incoming link without a trailing slash goes to trash, this is weird behavior which needs fix :)
Thanks.
The text was updated successfully, but these errors were encountered: