Add a server redirect to .htaccess file on Digital Ocean
- or -
Post a project like this$$
- Posted:
- Proposals: 4
- Remote
- #905678
- Expired
Description
Experience Level: Intermediate
General information for the website: Multiple websites hosted through Squiz Matrix
Description of requirements/features: I have an installation of Squiz Matrix running on a Digital Ocean droplet Debian 7.0 x64.
I have followed this tutorial to get it up and running: http://www.zedsaid.com/blog/install-squiz-matrix-in-10-minutes-on-debian-7.0-using-digital-ocean
I want to add a server side redirect to the .htaccess file to ensure that ALL non www traffic goes to the www. domain. This is best done at the .htaccess level and not possible in the system.
I have the code I need to add to a .htaccess file ready to go:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^coast.design$ [NC]
RewriteRule ^/(.*)$ http://www.coast.design/$1 [L,R]
I typically access .htaccess files via FTP but in this case, I need to do it via the console or via SSH, which I'm not au fait with.
I would like the job done, but also documented with screenshots and key strokes necessary for me to do this in the future.
I can provide all usernames/passwords which I will change after the job is completed.
Extra notes:
Description of requirements/features: I have an installation of Squiz Matrix running on a Digital Ocean droplet Debian 7.0 x64.
I have followed this tutorial to get it up and running: http://www.zedsaid.com/blog/install-squiz-matrix-in-10-minutes-on-debian-7.0-using-digital-ocean
I want to add a server side redirect to the .htaccess file to ensure that ALL non www traffic goes to the www. domain. This is best done at the .htaccess level and not possible in the system.
I have the code I need to add to a .htaccess file ready to go:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^coast.design$ [NC]
RewriteRule ^/(.*)$ http://www.coast.design/$1 [L,R]
I typically access .htaccess files via FTP but in this case, I need to do it via the console or via SSH, which I'm not au fait with.
I would like the job done, but also documented with screenshots and key strokes necessary for me to do this in the future.
I can provide all usernames/passwords which I will change after the job is completed.
Extra notes:
Andrew S.
100% (6)Projects Completed
6
Freelancers worked with
7
Projects awarded
71%
Last project
1 Apr 2020
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies