Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Make page open pdf file without adding .pdf to the end of the URL.

Posted on 2012-04-11
Medium Priority
Last Modified: 2012-06-27
I want to create a page via the "New Page" option in the backend of Wordpress site that has the URL of the new page (example: wpsite.com/newpage), but opens a file.pdf without further adding to the URL path?

Assistance is greatly appreciated. If you could create a free jing video of the procedure (www.techsmith.com/jing), then that would be even better.

Assistance is greatly appreciated.
Question by:rtod2
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 1000 total points
ID: 37836283
Are you aware that browsers only open a PDF in the browser if the user has a working PDF plugin like the Adobe PDF plugin?  If they don't have a PDF reader and/or don't have a plugin, it won't open in the browser.  It will open the download dialog instead.

Author Comment

ID: 37836297
Yes, I am aware. I regret that you answered with that 'instead of' vs 'in addition to' an actual solution. EE does not allow me to request attention until after a long period of time has passed. This means that this question will likely go stale for several days until it is answered with a real answer.
LVL 84

Expert Comment

by:Dave Baldwin
ID: 37836519
Interesting response.  My comments don't prevent anyone else from adding theirs.  

I'll expand on what I was saying.  It's the plugin in the browser on the user's computer that would open a PDF.  The two ways of telling the browser to use the plugin are the '.pdf' extension and the 'Content-type: application/pdf' header.  Here http://stackoverflow.com/questions/4750252/open-pdf-in-browser-with-php is some code to open the file in PHP on the server and set the headers and send the data.  You can try that and see if it will do what you want.
Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.


Author Comment

ID: 37837982
Thank you sir.  Not sure how to do that.  I'm looking for specific steps on how I accomplish my objective.
LVL 70

Accepted Solution

Jason C. Levine earned 1000 total points
ID: 37840960
Better yet...

Load the PDF to Scribd and embed the result in your WordPress page.

>> If you could create a free jing video of the procedure (www.techsmith.com/jing

No, sorry.

>> This means that this question will likely go stale for several days until it is answered with a real answer.

Guess you're in luck then.

Author Closing Comment

ID: 37841374
Not what I was looking for.  Thanks though.

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question