Remove trailing slashes

后端 未结 4 1754
清歌不尽
清歌不尽 2021-01-19 00:11

I\'d like to work with pages without trailing slashes. So now I want my URL\'s with an trailing slash to redirect (using .htaccess) to the same URL without the trailing slas

4条回答
  •  孤独总比滥情好
    2021-01-19 00:25

    Why do you have several .htaccess files? Where are the one's redirecting to public/$1 stored? You may very well be facing overriding RewriteRule directives that complicate things for you.

    Without knowing your setup it's fairly hard to say how you should be using rewrites - can you specify what things are ACTUALLY looking like?

提交回复
热议问题