Skip to content

blog.Gudynas.lt

About everything

Menu
  • Home
  • AS215899
  • OpenWebRX SDR
  • ADS-B Tracker
  • About sdr.Gudynas.lt
  • Contacts
Menu

Redirect a Domain without Changing the URL with htaccess rule

Posted on 2023-05-14 by Justas

Redirect and keep everything after the URL
RewriteCond %{HTTP_HOST} ^DomainA.com
RewriteRule ^(.*) https://DomainB.com/$1 [P]

Redirect a domain to a specific url
RewriteCond %{HTTP_HOST} ^DomainA.com
RewriteRule ^(.*) https://DomainB.com/PathToPageHere [P]

Redirect an IP address
# Redirect all IP address (replace the ## with the IP address numerals) to same https://domain_name.com
RewriteCond %{HTTP_HOST} ^##.##.##.##
RewriteRule (.*) https://domain_name.com/$1 [R=301,L]

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

  • sdr.Gudynas.lt Project (6)
  • Linux (42)
  • Windows (1)
  • Uncategorized (2)

Archives

  • August 2025 (1)
  • March 2025 (1)
  • November 2024 (2)
  • January 2024 (2)
  • December 2023 (1)
  • October 2023 (1)
  • September 2023 (2)
  • May 2023 (1)
  • April 2023 (1)
  • March 2023 (1)
  • August 2022 (1)
  • July 2022 (1)
  • March 2022 (1)
  • December 2021 (5)
  • November 2021 (5)
  • September 2021 (4)
  • August 2021 (1)
  • July 2021 (1)
  • May 2021 (1)
  • April 2021 (1)
  • January 2021 (1)
  • October 2020 (2)
  • August 2020 (1)
  • May 2020 (1)
  • November 2019 (2)
  • September 2018 (10)

Recent Posts

  • SDR.Gudynas.lt upgrades, ADS-B receiver installed
  • Ready for Winter, Network upgrades, and What was done in 2024 for sdr.gudynas.lt project
  • 2023-10-15 Some SSTV decoding on 10/11m SDR
  • Enabling auto-adjust waterfall colors by default OpenWebRX
  • Enabled Background decoding and HF propagation

Recent Comments

  • Bruce MAYO on About sdr.Gudynas.lt OpenWebRX project
  • BT on About sdr.Gudynas.lt OpenWebRX project
  • Bernd on About sdr.Gudynas.lt OpenWebRX project
May 2023
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Apr   Sep »
© 2025 blog.Gudynas.lt | Powered by Minimalist Blog WordPress Theme