Find Jobs
Hire Freelancers

Create RAW GIF handler page for website

$30-250 USD

Completed
Posted about 9 years ago

$30-250 USD

Paid on delivery
I have a viral image site ([login to view URL]) where people can view funny gifs. A lot of people on reddit are sharing the raw .gif files however, rather than the page with .gif embedded. This is fine but I'd like to redirect all people viewing raw image .gifs to a handler page called [login to view URL] (located in root directory). This handler page will look exactly the same - just with a share link and button to check out the rest of the site. Example of raw image location: [login to view URL] Share page location: [login to view URL] At this stage I have the redirection working properly. I can redirect all raw image gifs to the handler page. HOWEVER I can't get my handler page to collect the raw image file from the referring URL. So essentially if a user visits: [login to view URL] They should be redirected to [login to view URL] And on this shareraw page you'll see exactly the same thing as if you were looking at the raw .gif resource. Just with an added 2 buttons. On this [login to view URL] page I tried using the $_SERVER['HTTP_REFERER'] variable to collect the previous referer (which would be [login to view URL]). I would then be able to put that into a <img> element on the shareraw page, thus achieving my goal. UNFORTUNATELY the $_SERVER['HTTP_REFERER'] ONLY works if there's a header. So since the raw image .gif didn't have one, $_SERVER['HTPP_REFERER'] is NULL. With that all being said, I now need an alternate solution. If you think you can figure this out please bid. Note however I will only pay if the requirements are met. Which again are: -redirect all .raw gif address requests to a handler page (already done) -handler page needs to populate an <img> element with the referring .gif -alternate solutions are accepted as long as all raw .gif address requests go to a handler page with <img> element populated with that gif. There are multiple solutions here. Another solution may be to create .php files for each raw image gif on the server, and then just redirect the .gif to .php. Would need a program to do this because there are 17k gifs on the site. On each php file you'd just need to get the url address via $_SERVER then just delete the last 3 characters of the url and replace with a .gif - then that could populate the <img> element. -just an example of a possible alternate solution Additional points: -Site is being hosted on wordpress -Server configuration is nginx (I can change back to apache if I must) -test address is [login to view URL]
Project ID: 7486659

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, I think the problem can be solved by some custom redirection (setup in the htaccess for apache server or in the config file of nginx) which redirects all files [login to view URL] to [login to view URL] and so the shareraw script can grab the file name from the img GET parameter. I can make it for you within max a day after you accept my bid. Regards, Tamas
$111 USD in 1 day
4.8 (158 reviews)
5.7
5.7
6 freelancers are bidding on average $171 USD for this job
User Avatar
========Please Don't award this project to us without discussing this project in detail============ Hi, I (Myself a senior PHP, ASP.NET programmer using C# and VB) have a team having experience of more than 10 years in developing web and mobile applications. I have a team of expert programmers who write robust and bug-free codes at the very first instance. After seeing our quality of work and the cooperation offered to you even after the work has been delivered to you, you’ll come to us again and again to avail our services. I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I can achieve the results that you are asking for within your timeframe and budget. I am confident I can exceed your expectations and I would love to work on your project. Thanks, Priyanka
$309 USD in 10 days
4.9 (38 reviews)
6.3
6.3
User Avatar
Nie złożono jeszcze oferty.
$110 USD in 3 days
4.7 (52 reviews)
5.4
5.4
User Avatar
This is relatively easy. You want to create the redirect in the .htaccess file and pass the url. It would take about 2 -4 hours to do clean. Fyi I am a developer and data guy, I am not a graphic designer so I can't make it look pretty but I can get all your function and share button for the gif with the redirect.
$111 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Vancouver, Canada
5.0
42
Payment method verified
Member since May 10, 2014

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)
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.