Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


bigalow

566 posts

Ultimate Geek


#208390 9-Feb-2017 19:49
Send private message

at the moment i been using this on 1 site

 

RedirectMatch 302 (.*)\.html$ http://www.mysite.com/folder/index.shtml

 

now i'm using another domain to mirror the first site

 

so i want to change it to something like this

 

RedirectMatch 302 (.*)\.html$ http://%{HTTP_HOST}%/folder/index.shtml so the 2nd domain doesn't redirect to the 1st domain

 

of cause that does not work

 

is there another why i can get this to work ?

 

 

 

thanks

 

 

 

 

 

 

 

 

 

 





 

 

 


Create new topic
bigalow

566 posts

Ultimate Geek


  #1718399 10-Feb-2017 18:20
Send private message

 dont worry i got it now by using

 

 

 

RewriteEngine on
RewriteRule (.*)\.html$ /folder/index.shtml [NC,R]

 

 





 

 

 




jarledb
Webhead
3257 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #1718403 10-Feb-2017 18:33
Send private message

Which should give you a 301 redirect. If you want to pass on any Google juice, you should NEVER use 302. 302 is for temporary redirects and should never be used to tell search engines (and browsers) about new locations for content.

 

Sounds like you are creating another SEO nightmare for yourself though..





Jarle Dahl Bergersen | Referral Links: Want $50 off when you join Octopus Energy? Use this referral code
Are you happy with what you get from Geekzone? Please consider supporting us by making a donation or subscribing.


bigalow

566 posts

Ultimate Geek


  #1718516 11-Feb-2017 00:17
Send private message

what should i use then ?

 

is this ok ?

 

RewriteEngine on RewriteRule (.*)\.html$ /folder/index.shtml [NC,R]





 

 

 


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.