Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

website without trailing slash with duplicate content, URL finds with ?url=


Go to End


2 Posts   1145 Views

Avatar
KaiCh

Community Member, 2 Posts

4 December 2016 at 4:43am

We are using our website without trailing slash (and need to go on without slash...) and have problems with duplicate contend cause you finde all pages also like this: www.domain.com/site1/?url=/site1/
how can we remove it? Any idea?

Avatar
KaiCh

Community Member, 2 Posts

4 December 2016 at 10:55pm

Now it works with :
RewriteCond %{THE_REQUEST} \?url=(.*)\sHTTP [NC]
RewriteRule ^ %{REQUEST_URI} [L,R=301,QSD]
in htaccess