Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I posted a question about whether it's possible to add a Page in WordPress without headers and footers.

Here's that question: Add a Page without header and menus?

So how can I create a static page with none of the WordPress stuff that appears on all the other pages of my WordPress site, and add html at that url?

How would I do that?

share|improve this question
    
It's not clear what you're asking, showing arbitrary html at a URL is already possible using page templates or just raw post markup and a page template. –  Tom J Nowell Jul 28 '12 at 19:13
1  
It also looks like rather than clarifying your question and editing it, you've just created a new one that's asking the same thing =/ –  Tom J Nowell Jul 28 '12 at 19:14
3  
the answers you got on that question gave you the answer to this one. –  peteroak Jul 28 '12 at 19:15
    
I answered at the original question. No need for this duplicate. –  JoeTaxpayer Jul 29 '12 at 1:01
add comment

1 Answer

up vote 1 down vote accepted

Richard

To be honest I think you are asking How can I stop WordPress from responding to URL's for static pages that I save in other directories on my server

Basically its in 2 files

  • your VHOST (which maps mydomain.com to www/some_folder/ )
  • your .htaccess file which manages redirects

So you can do 2 things ...
1. get a new VHOST for subdomain so something-mydomain.com maps to another a folder on your server - or -
2. update your .htaccess file to include redirect urls

your .htaccess file will pick up any requests for urls BEFORE WordPress gets involved.

so you can have mydomain.com and WordPress will manage all requests and then create a rule that says mydomain.com/this_page.html is in www/some_folder/this_page.html

here is an example of code for a redirect to a static page that you can add to your .htaccess file:

#static page redirects here
redirectMatch 301 ^/this_page(.*)$ /this_folder/this_page.htm'  
share|improve this answer
    
Nice interpretation, seems legit :) If revealed correct, either you or @Richard should edit the Q to make this clear. Anyway, the Q really deserves some clarification... –  brasofilo Jul 28 '12 at 22:00
    
@brasofilo cheers for that :) –  Damien Jul 28 '12 at 22:02
    
@richard did that work? –  Damien Jul 29 '12 at 20:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.