Search code examples
linuxapacheredhat

How to redirect url (httpd)


In my Apache server I need to redirect my URL http://10.11.10.11:9003/ObiController to http://abc.co.in.

How do I redirect to accomplish this ?


Solution

  • For redirecting in apache with port, you can add the below line to you httpd.conf file

    Redirect 301 /ObiController http://abc.co.in:9003
    

    A 301 redirect refers to the HTTP status code that is returned when a HTTP request for a specific resourse is redirected.