We use Apache HTTP Server Version 2.4 for redirect example-test-1.com/group/ to example-test-1.com/
I can't able to redirect.
Reference URL Below:-
https://httpd.apache.org/docs/2.4/rewrite/remapping.html#old-to-new-intern
Path of configuration file /etc/apache2/sites-enabled/example-test-1.com.conf setting file
< VirtualHost *:80>
ServerName example-test-1.com
ServerAlias example-test-1.com
RewriteEngine on
Redirect permanent /example-test-1.com/group/ /example-test-1.com/
LogLevel warn
ErrorLog /var/log/apache2/example-test-1.com.error.log
CustomLog /var/log/apache2/example-test-1.com.log combined
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
any other way possible to achieve it.
/webis the URL part that denotes public pages,/groupis the part that denotes private pages (followed by the site's friently-URL-name).You can set a virtual host for your site's pages (public and private, separately) to match the actual hostname (see Site Settings). This needs to be a unique hostname, then it will be taken instead of
/web/sitenameor/group/sitenameto unambiguously name the site. You can find this virtual host in your "Site Content / Configuration / Site Settings" (by default it's empty).In addition
will redirect the URL
http://www.example.com/example-test-1.com/group/tohttp://www.example.com/example-test-1.com/if I'm not mistaken. Probably not what you want. As you have already given theServerName(and superfluous identicalServerAlias, this virtual host won't process anything for any other virtual host anyway and there's no need to specify the domain part, specifically not as non-domain part of the URL.