I installed cms at Linux server 10.0.0.1/cms/. I want to redirect every visit to 10.0.0.1/pages to 10.0.0.1/cms/pages, while hide "cms" in the URLs.
Several attempts have been tried but failed.
1> edit /etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/html" --> DocumentRoot "/var/www/html/cms"
This only works for index page. Hyperlinks in the index "10.0.0.1/cms/pages" will become unavailable in this case, as /cms/pages no longer exist in the DocumentRoot directory "/var/www/html/cms".
2> edit /etc/httpd/conf/httpd.conf
Redirect / /cms/
This will cause infinite loop 10.0.0.1/cms/cms/cms/...
Any idea on this?