2

i have a problem redirecting my sites' old links to the homepage of my site.

To begin with, i'm using these rules to redirect my site to https as i'm using ssl certificate:

RewriteEngine On
RewriteCond %{HTTPS} !^on$
RewriteRule (.*) https://example.com/$1 [R,L]

Further more i want to redirect my old links like

http://www.example.com/Default.asp?Network=44448&campaign=89&banner=5147

to the homepage. There are many links with the same Default.asp page and different query strings which i dont need any more. Any help, mates ?

1 Answer 1

1

You can add this rule below your earlier rule:

RewriteRule ^Default\.asp$ /? [L,NC,R=302]
Sign up to request clarification or add additional context in comments.

1 Comment

Unfortunatelly it doesnt work. Wordpress says that page is not found.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.