Hi,
I am looking at some documentation that seems to be contradictory.
The default root for Apache2 is /var/www/html. (on Ubuntu 24.04lts)
The article I am looking at shows that a new virtual host should have a
path /var/www/[domain]/public_html.
So far so good.
ChatGPT says to add the following code to the default virtual host
configuration file as part of the configuration of mod_rewrite:
RewriteEngine On
RewriteRule ^oldpage.html$ newpage.html [R=301,L]
I'm thinking to make the mod_rewrite apply to all virtual hosts the path
needs to be /var/www/ like this:
RewriteEngine On
RewriteRule ^oldpage.html$ newpage.html [R=301,L]
Another article shows:
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
This seems to imply each virtual host will need to be configured
individually for mod_rewrite like this:
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
And the mod_rewrite configuration also requires a .htaccess file.
Any thoughts are much appreciated.
Keith
---------------------------------------------------
PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss