Find Jobs
Hire Freelancers

Asp on page Redirect Help

$30-100 USD

Cancelled
Posted about 18 years ago

$30-100 USD

Paid on delivery
Hi, I have some code at the top of each page that redirects non-www to www, checked that with a couple of header status checkers and it works. But I now have a problem with an [login to view URL] showing up in googles index instead of [login to view URL] I am not an ASP programer so I am a little concerned that maybe the code doing the non-www to www redirect I was provided with is causing the problem. Here is the code <% dim hostname dim pathinfo dim bRedirect dim MainDomain hostname = [login to view URL]("HTTP_HOST") pathinfo = [login to view URL]("PATH_INFO") MainDomain = "[login to view URL]" if pathinfo <> "" then if instr(lcase(pathinfo),"[login to view URL]") > 0 or instr(lcase(pathinfo),"[login to view URL]") > 0 or instr(lcase(pathinfo),"[login to view URL]") > 0 then MainDomain = MainDomain &"/" & mid(pathinfo,2,instrrev(pathinfo,"/")-1) else MainDomain = MainDomain & pathinfo end if else MainDomain = MainDomain & "/" end if if left(hostname,instr(hostname,".")) <> "www." then bRedirect = true if instr(lcase(hostname),"[login to view URL]") > 0 or instr(lcase(hostname),"[login to view URL]") > 0 or instr(lcase(hostname),"[login to view URL]") > 0 then bRedirect = true if bRedirect then [login to view URL] = "301 Moved Permanently" [login to view URL] "Location", "http://" & MainDomain [login to view URL] end if %> I need a good asp programer familar with on page redirects to review the code. Determine if something in this code is causing the [login to view URL] problem? Correct the code add code that would implement a 301 redirect that would redirect www and non www [login to view URL] to [login to view URL] throughout the site. I have attached a notepad txt file of the code as well ## Deliverables detailed commented asp code corrections and additions that will prevent the generation of malformed urls if necessary. Detailed commented asp code Asp code addition that will preform a 301 redirect of existing mal formed urls to correct urls 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform ASP, windows server,
Project ID: 3329339

About the project

5 proposals
Remote project
Active 18 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
5 freelancers are bidding on average $52 USD for this job
User Avatar
See private message.
$17 USD in 1 day
5.0 (1332 reviews)
7.5
7.5
User Avatar
See private message.
$42.50 USD in 1 day
4.4 (8 reviews)
4.1
4.1
User Avatar
See private message.
$12.75 USD in 1 day
5.0 (16 reviews)
3.8
3.8
User Avatar
See private message.
$170 USD in 1 day
5.0 (1 review)
3.6
3.6
User Avatar
See private message.
$17 USD in 1 day
4.9 (6 reviews)
3.1
3.1

About the client

Flag of UNITED STATES
United States
4.9
36
Member since Feb 21, 2004

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.