I have my site running in GCP, I need to edit the .htaccess file to create a redirect that redirects www to non www. How do I configure it?. I don't see .htaccess file in my website, I used a file manager plugin to access wordpress core files.
I read somewhere bitnami has htaccess configured differently,.How do I create the redirect?
BTW, my httpd-vhosts.conf file has the following lines of code,.
<VirtualHost *:80>
ServerName wordpress.example.com
ServerAlias www.wordpress.example.com
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
Include "/opt/bitnami/apps/wordpress/conf/httpd-app.conf"
</VirtualHost>
<VirtualHost *:443>
ServerName wordpress.example.com
ServerAlias www.wordpress.example.com
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
SSLEngine on
SSLCertificateFile "/opt/bitnami/apps/wordpress/conf/certs/server.crt"
SSLCertificateKeyFile "/opt/bitnami/apps/wordpress/conf/certs/server.key"
Include "/opt/bitnami/apps/wordpress/conf/httpd-app.conf"
</VirtualHost>
It literally has example.com, not mydomain.com, should I be worried?