I have a wordpress website server running on linux. I have a issues when I enter docs.domain.com it opens a Test Page Test Page pic . So my target is when users enter https://docs.example.com to redirect them to https://example.com/example-documentation/ , can you help me ? Best Regards
[example conf.d]$ cat docs.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName docs.example.com
ServerAlias docs.example.com
DocumentRoot /var/www/brand/Documentation/new
RewriteEngine on
RewriteCond %{SERVER_NAME} =docs.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
redirect apache
? Have you read Apache documentation, which frankly is excellent?