Find Jobs
Hire Freelancers

Simple web.config URL rewrite/redirect from non-www to www preserve http/https

$10-30 USD

Completed
Posted almost 9 years ago

$10-30 USD

Paid on delivery
We want to put code in [login to view URL] file that rewrites or redirects incoming traffic without ‘www” to “www” for both http and https (preserve http/https). To be clear: [login to view URL] should go to [login to view URL] [login to view URL] Should got to [login to view URL] We already put in the code below that works for http but is not working for https ([login to view URL] incorrectly goes to [login to view URL]) because the redirect hardcodes http and instead it must be built to use the original http or https in the redirect code. <[login to view URL]> <rewrite> <rules> <rule name="Add www" patternSyntax="Wildcard" stopProcessing="true"> <match url="*" /> <conditions> <add input="{HTTP_HOST}" pattern="[login to view URL]" negate="true" /> </conditions> <action type="Redirect" url="[login to view URL]{R:1}" /> </rule> </rules> </rewrite> </[login to view URL]> This should be very simple for developer who understands the wildcards and rules. Must be done via web.config. All elements of code should be explained to us. Preference is to have code similar to above.
Project ID: 8184090

About the project

6 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, Can you try to do it like this please: <[login to view URL]> <rewrite> <rules> <rule name="Add www" patternSyntax="Wildcard" stopProcessing="true"> <match url="*" /> <conditions trackAllCaptures="true"> <add input="{HTTP_HOST}" pattern="[login to view URL]" negate="true" /> <add input="{CACHE_URL}" pattern="^(.+)://" /> </conditions> <action type="Redirect" url="{C:1}://[login to view URL]{R:1}" /> </rule> </rules> </rewrite> </[login to view URL]> Regards
$30 USD in 1 day
5.0 (19 reviews)
4.7
4.7
6 freelancers are bidding on average $24 USD for this job
User Avatar
Hi I can solve your issue via .htaccess as you can see i have done recently with www.classiciasacademy.com. Please check and let me know I can do it now. Thanks
$24 USD in 1 day
4.8 (176 reviews)
7.4
7.4
User Avatar
Hello, I will be happy to help you with this. About me: I'm a 31 year old webdeveloper from Norway, with most expertice in PHP. - I have 15 years of PHP experience - I am the author of phpSec, A PHP security library. - I have 10 years of Drupal experience - I am the author of the Authy module for Drupal. I also know my way around the following technologies: JavaScript/jQuery, HTML, CSS, mySQL, Ubuntu, Apache, nginx, Git, CVS, SVN, Cisco, Bootstrap, Laravel and Drupal. I always write code with security in my mind. I work fast and test thoroughly. I will sign a "no disclosure agreement" if needed.
$25 USD in 1 day
5.0 (3 reviews)
3.1
3.1
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
5.0 (1 review)
1.9
1.9
User Avatar
I would be greatly pleased to join your project for the post of Système adminitrator as I posses the required skills and experience in this arena. I have many years of experience working as a Système adminstrator in UCAO an science and technologie university in togo and I also have continual experience in programing Java, C++, PHP over the past few years. I have individual experience in working on arduino for a project which is steel in progresse. I also have great Experience in Cisco equipement configuration (router an switch) .I look forward to being hired by you.
$30 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Gilbert, United States
5.0
20
Payment method verified
Member since Sep 30, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.