Support Team
posted this
21 July 2023
Hello Mason,
Thanks for reaching out to us
To set up a proper redirection, you can follow these steps below, but we would advise you to contact your hosting support:
Check your WordPress General Settings:
Log in to your WordPress dashboard.
Go to "Settings" >> "General."
Ensure that both the "WordPress Address (URL)" and "Site Address (URL)" have the www version of your domain (e.g., http://www.cambridgevendingsolutions.co.uk).
Check your .htaccess file:
Access your website's root directory using an FTP client or the file manager provided by your hosting provider.
Look for the .htaccess file. If you don't see it, ensure your FTP client or file manager is set to show hidden files.
Download a backup copy of the .htaccess file to your computer, just in case.
Edit the .htaccess file using a text editor and add the following code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Save the changes to your .htaccess file and upload them to your website's root directory.
Clear your browser cache and try accessing your website without the www prefix (e.g., http://cambridgevendingsolutions.co.uk). It should automatically redirect to the www version.
Please keep in mind that changes to .htaccess can have a significant impact on your site, so it's essential to create a backup before making any modifications.
If you're uncomfortable with modifying the .htaccess file yourself, you can contact your hosting provider's support or a WordPress expert for assistance.
Remember to be patient, as it may take some time for search engines to update their indexes with the new redirection.
If you have any further questions or need additional help, please feel free to ask!
...................................................
Sincerely,
Ahmad.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp
Hello Mason,
Thanks for reaching out to us
To set up a proper redirection, you can follow these steps below, but we would advise you to contact your hosting support:
Check your WordPress General Settings:
Log in to your WordPress dashboard.
Go to "Settings" >> "General."
Ensure that both the "WordPress Address (URL)" and "Site Address (URL)" have the www version of your domain (e.g., http://www.cambridgevendingsolutions.co.uk).
Check your ***.htaccess*** file:
Access your website's root directory using an FTP client or the file manager provided by your hosting provider.
Look for the ***.htaccess*** file. If you don't see it, ensure your FTP client or file manager is set to show hidden files.
Download a backup copy of the ***.htaccess*** file to your computer, just in case.
Edit the ***.htaccess*** file using a text editor and add the following code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Save the changes to your ***.htaccess*** file and upload them to your website's root directory.
Clear your browser cache and try accessing your website without the www prefix (e.g., http://cambridgevendingsolutions.co.uk). It should automatically redirect to the www version.
Please keep in mind that changes to ***.htaccess*** can have **a significant impact on your site,** so it's essential to create a backup before making any modifications.
If you're uncomfortable with modifying the ***.htaccess*** file yourself, you can contact your hosting provider's support or a WordPress expert for assistance.
Remember to be patient, as it may take some time for search engines to update their indexes with the new redirection.
If you have any further questions or need additional help, please feel free to ask!
...................................................
Sincerely,
Ahmad.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp