An application is supposed to be decommissioned now and a new Application needs to replace it. The new application has a new/different URL. However the business would want the old applications users to face less issues. The business people would like the old application users to be redirected to new Application URL on hitting the old Application URL automatically!
How can this be done? Well this involves a small change in the OHS level. Read below to know :
Old Application URL:
https://learning.oraclefusionfacts.com/welcome/name.jspx
Redirected to New Application URL:
https://focusonfusion.oraclefusionfacts.com/app/name.jspx
On the OHS server where we have the configuration for our old application the HTTP server Virtual Server entry look like this: You will find the below entry in the HTTPD.CONF file!
# Start Virtual Server Settings
NameVirtualHost *:7777
ServerName https://learning.oraclefusionfacts.com:443
ServerAdmin siddharth.mishra@oraclefusionfacts.in
RewriteEngine On
RewriteOptions inherit
SetHandler weblogic-handler
WebLogicCluster app.oraclefusionfacts.in:8001
How can this be done? Well this involves a small change in the OHS level. Read below to know :
Old Application URL:
https://learning.oraclefusionfacts.com/welcome/name.jspx
Redirected to New Application URL:
https://focusonfusion.oraclefusionfacts.com/app/name.jspx
On the OHS server where we have the configuration for our old application the HTTP server Virtual Server entry look like this: You will find the below entry in the HTTPD.CONF file!
# Start Virtual Server Settings
NameVirtualHost *:7777
ServerName https://learning.oraclefusionfacts.com:443
ServerAdmin siddharth.mishra@oraclefusionfacts.in
RewriteEngine On
RewriteOptions inherit
SetHandler weblogic-handler
WebLogicCluster app.oraclefusionfacts.in:8001
# End Virtual Server Settings
In order to REDIRECT the request coming to the Old URL to our new URL make the following changes to the Virtual Host entry on the HTTPD.CONF file as shown below:
# Start Virtual Server Settings
NameVirtualHost *:7777
ServerName https://learning.oraclefusionfacts.com:443
Redirect 301 /welcome https://focusonfusion.oraclefusionfacts.com/app/name.jspx
ServerAdmin siddharth.mishra@oraclefusionfacts.in
RewriteEngine On
RewriteOptions inherit
SetHandler weblogic-handler
WebLogicCluster app.oraclefusionfacts.in:8001
# End Virtual Server Settings
After making this change make sure you restart the OHS server using opmnctl HTTP utility!
Now open a new browser session. Make sure you clear the cache for the browser session. in case you do not do it the old URL will not redirect to the new URL! Once done now key in the old URL and Hit Enter. The old URL must automatically change to the new URL !
So go ahead and make your Boss proud !!! Do not forget to mention in comments if this helped you :)
Hi Sir,
ReplyDeleteMy Application Webserver is Oracle Iplanet 7.0. I am trying to implement URL redirection for my application, with the below URLS when used in browser
Redirection from https://testsite.com
to
https://abc.testsite.com
I have used the following code in the obj.conf file
https://testsite.com" > NameTrans fn="redirect" url="https://abc.testsite.com" The above redirection rule is working only on Internet Explorer. What changes should I apply in obj.conf file such that the redirection supports for all the browsers
kuşadası
ReplyDeletecekmekoy
kartal
hatay
karaman
Z170
kuşadası
ReplyDeletecekmekoy
kartal
hatay
karaman
7H3
kuşadası
ReplyDeletecekmekoy
kartal
hatay
karaman
E0DJ4X
betturkey
ReplyDeletesex hattı
https://izmirkizlari.com
sms onay
J1M822
Adana
ReplyDeleteErzurum
Sinop
istanbul
Düzce
ZL8217
van
ReplyDeletekastamonu
elazığ
tokat
sakarya
A8N45G
4C5A3
ReplyDeleteTekirdağ Parça Eşya Taşıma
Bursa Parça Eşya Taşıma
Maraş Lojistik
Kilis Parça Eşya Taşıma
Tekirdağ Evden Eve Nakliyat
E3850
ReplyDeleteOsmaniye Şehir İçi Nakliyat
Çerkezköy Motor Ustası
Bartın Şehirler Arası Nakliyat
Artvin Şehir İçi Nakliyat
Manisa Evden Eve Nakliyat
Çerkezköy Oto Lastik
Çerkezköy Çekici
Bitrue Güvenilir mi
Sivas Şehirler Arası Nakliyat
8E01F
ReplyDeleteMuğla Lojistik
Samsun Evden Eve Nakliyat
Antalya Parça Eşya Taşıma
Mardin Şehir İçi Nakliyat
Siirt Parça Eşya Taşıma
Giresun Lojistik
Denizli Parça Eşya Taşıma
Silivri Parke Ustası
Iğdır Parça Eşya Taşıma
D199F
ReplyDeleteBinance Hesap Açma
Facebook Beğeni Satın Al
Binance Referans Kodu
Youtube Abone Satın Al
Tumblr Beğeni Hilesi
Bitcoin Kazanma Siteleri
Bitcoin Kazanma
Nonolive Takipçi Hilesi
Bitcoin Madenciliği Siteleri
DFEA0
ReplyDeleteŞırnak
Bozova
Merkezefendi
Reyhanlı
Torbalı
Yeşilyurt
Sivas
Battalgazi
Saray