Linux or SSH script to create/modify .htacess files inside WHM server`s sites
$10-30 USD
Completed
Posted over 3 years ago
$10-30 USD
Paid on delivery
I need to create a script that should read all the sites inside "home" folder of a server with WHM and:
1) if there is not a .htaccess file inside public_html it should create ir with this code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
2) if the .htaccess exists ir should add this code at the top
Thanks,
Francisco
I can do it.
I'm expert with writing bash scripts for Linux systems.
My one of the last finished script/project - https://www.freelancer.com/projects/asterisk-pbx/Creat-bash-script-for-cronetab/reviews
I ready to discuss of your task.
$20 USD in 1 day
5.0 (19 reviews)
3.8
3.8
9 freelancers are bidding on average $24 USD for this job
HI,
I can do this in few hours. Few questions - what will be the path of home directory? Should we check if this block exists in .htaccess file before updating the file.
Thanks
Hi there, I have good experience in shell and bash scripting. I can provide you the expected results quickly.
Message me and lets finish this up quickly.
Thanks
I am affected my job because of corona lockdown. That's why I am hare. If you give this project, It will help me and my family (I can able to do this task with 100% confident). Please Help me to give this task.
I have 3 years experience in linux and system admin. about task:- this script using SSH or FTP credential to connectthe server and add .htaccess file with that block if not. If file exit and if that block not exit, add the block on top.