Redirecting a PDF File to an HTML File with the Same PDF Embedded in it (Without a Loop)

Færdiggjort Opslået 2 år siden Betalt ved levering
Færdiggjort Betalt ved levering

[login to view URL] is an online searchable database of court judgments that consists, in part, of HTML files with imbedded PDF files. A lot of external links to the website, however, link only to PDF files and not to HTML files that imbed those PDF files.

I am looking for a *simple* solution that would redirect those visitors that hit on the links to the PDF files to the corresponding HTML files (the file names are identical except for their file extension).

However, this needs to be done without creating a loop, i.e. when the visitor is redirected to the HTML file, the PDF file that is imbedded in that HTML, should not itself be redirected. Otherwise you just end up with HTML file imbedded in HTML file.

After the user was redirected, the URL in the browser should change from [login to view URL] to filename.htm.

The solution must be capable of being turned on or off in order to allow the re-indexing of the website to occur (alternatively, the solution should not redirect users that click on links within the domain).

The website is running on Nginx and Ubuntu. It is a static website. Please note that there are approximately 50,000+ individual PDFs, so the solution cannot be file specific, but should apply to the whole website. All PDFs have corresponding HTML shells.

IMPORTANT: Please provide a time estimate and a general non-technical description of the solution that you intend to implement.

Scripting Nginx Ubuntu PHP

Projekt ID: #30410038

Om projektet

4 bud Remote projekt Aktiv 2 år siden

Tildelt til:

sureshdevi

Hello, I will create redirect from pdf to html via htaccess without loop redirect. I will complete this work in 1 - 2 days. Looking for your reply to start this work immediately. I am available online for 8 - 10 hours Flere

$46 USD in 2 dage
(1215 bedømmelser)
8.2

4 freelancere byder i gennemsnit $110 timen for dette job

AleksD2

If the filenames are identical and only the extension is different, this should not be a difficult task. I'll be happy to take care of this for you.... (htaccess for redirecting and php for embedding)

$100 USD på 1 dag
(0 bedømmelser)
0.0