Question QuestionsRedirect 5 URLs to a single one

Questions :question: place them in this section
Previous topicNext topic
User avatar

Topic Author
RazvanAlexandru
Users
Users
Magic user status: Offline
Posts: 16
Joined: Jul 16th, '20, 19:57
    Windows 10 Chrome

Redirect 5 URLs to a single one

Post by RazvanAlexandru »

Hello, I've been trying to redirect these 5 URLs to a single one but I couldn't manage to do it and I don't know what else to do. What should I do in order to make it work?

Code: Select all

https://www.realestatebpo.com/index.php?sid=e4966481a9c92c98d40e0e1360015d94
https://realestatebpo.com/
https://realestatebpo.com/index.php
https://www.realestatebpo.com/index.php
https://www.realestatebpo.com/
All pages have 5 different URLs, need to do redirect all to https://www.realestatebpo.com/

I tried with these rules but still nothing:

Code: Select all

RewriteCond %{REQUEST_URI} ^index\.php$ [NC]
RewriteRule ^(.*)$ https\:\/\/www\.realestatebpo\.com\/? [L,R=302]

Code: Select all

RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https\:\/\/www\.realestatebpo\.com\/$1 [L,R=302]

This topic has 4 replies

You must be a registered member and logged in to view the replies in this topic.


Register Logout
 
Previous topicNext topic