Find Jobs
Hire Freelancers

Create RAW GIF handler page for website

$30-250 USD

已完成
已发布大约 9 年前

$30-250 USD

货到付款
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]
项目 ID: 7486659

关于此项目

6提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
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 在1天之内
4.8 (158条评论)
5.7
5.7
6威客以平均价$171 USD来参与此工作竞价
用户头像
========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 在10天之内
4.9 (38条评论)
6.3
6.3
用户头像
Nie złożono jeszcze oferty.
$110 USD 在3天之内
4.7 (52条评论)
5.4
5.4
用户头像
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 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

CANADA的国旗
Vancouver, Canada
5.0
42
付款方式已验证
会员自5月 10, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。