Redirect page from http://cacti.example.com to http://cacti.example.com/cacti

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
hasib
Posts: 2
Joined: Thu May 07, 2020 4:28 pm

Redirect page from http://cacti.example.com to http://cacti.example.com/cacti

Post by hasib »

Hi,

I am using apache top of CentOS 7. I want to auto redirect my page http://cacti.example.com to http://cacti.example.com/cacti

Kindly need some help and assistance. I already change the documentary root on /etc/httpd/conf/httpd.conf
hasib
Posts: 2
Joined: Thu May 07, 2020 4:28 pm

Re: Redirect page from http://cacti.example.com to http://cacti.example.com/cacti

Post by hasib »

Basically what I did, Hash (#) the "/var/www/html" and added DocumentRoot "/usr/share/cacti/"-

vim /etc/httpd/conf/httpd.conf

#DocumentRoot "/var/www/html"
DocumentRoot "/usr/share/cacti/"

But somehow, after several login could not access on cacti. It was showing like
Test1.JPG
Test1.JPG (53.63 KiB) Viewed 373 times
Somehow, I solved it on : /etc/httpd/conf.d/cacti.conf added following line - - -

RedirectMatch ^/$ http://cacti.example.com/cacti
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest