<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Override single WordPress pages with .htaccess</title>
	<atom:link href="http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/</link>
	<description>"It's All Geek To Me"</description>
	<lastBuildDate>Wed, 01 Sep 2010 17:17:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: alex</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-2554</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Sun, 28 Feb 2010 10:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-2554</guid>
		<description>Hi,

Does this also work for dynamic pages in a subfolder??


I am a bit stuck with my setup.

I have WP in my root
I have a folder Jobs with php files which connects with the DB and do some searches and outputs them.
-WP
--jobs
--other appl.

In my ideal situation i want to use

db content

in jobs

But also SEO friendly url&#039;s like 
jobs/sector/job-detail
jobs/sub-sector/search-detail/job-detail

so now i have an index.php in jobs looking like
require(&#039;./../wp-blog-header.php&#039;);
get_header();

But i realize WP will return a page not found with jobs, jobs/$1/ jobs/$1/$2 etc

What should i do??</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Does this also work for dynamic pages in a subfolder??</p>
<p>I am a bit stuck with my setup.</p>
<p>I have WP in my root<br />
I have a folder Jobs with php files which connects with the DB and do some searches and outputs them.<br />
-WP<br />
&#8211;jobs<br />
&#8211;other appl.</p>
<p>In my ideal situation i want to use</p>
<p>db content</p>
<p>in jobs</p>
<p>But also SEO friendly url&#8217;s like<br />
jobs/sector/job-detail<br />
jobs/sub-sector/search-detail/job-detail</p>
<p>so now i have an index.php in jobs looking like<br />
require(&#8216;./../wp-blog-header.php&#8217;);<br />
get_header();</p>
<p>But i realize WP will return a page not found with jobs, jobs/$1/ jobs/$1/$2 etc</p>
<p>What should i do??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo Bazán</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-2358</link>
		<dc:creator>Leo Bazán</dc:creator>
		<pubDate>Thu, 30 Jul 2009 02:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-2358</guid>
		<description>@Jared Elvidge

Jared, try adding the &quot;[L]&quot; flag at the end of the line, like this:

RewriteRule ^product/([0-9]+)/$ /product.php?sku=$1 [L]

That flag makes that line the last to be executed, only if your pattern matches. In case your pattern doesn&#039;t match, the line is skipped and the WR&#039;s ones will be executed.

PS: Excuse my English, since it&#039;s not my native language :S</description>
		<content:encoded><![CDATA[<p>@Jared Elvidge</p>
<p>Jared, try adding the &#8220;[L]&#8221; flag at the end of the line, like this:</p>
<p>RewriteRule ^product/([0-9]+)/$ /product.php?sku=$1 [L]</p>
<p>That flag makes that line the last to be executed, only if your pattern matches. In case your pattern doesn&#8217;t match, the line is skipped and the WR&#8217;s ones will be executed.</p>
<p>PS: Excuse my English, since it&#8217;s not my native language :S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo Barba</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-2278</link>
		<dc:creator>Rodrigo Barba</dc:creator>
		<pubDate>Mon, 25 May 2009 16:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-2278</guid>
		<description>You saved my life =)</description>
		<content:encoded><![CDATA[<p>You saved my life =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-1617</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 06 Oct 2008 14:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-1617</guid>
		<description>Michael --

A better solution:  Make the index file into a WordPress template.  In WordPress, edit the front page and set its template to that new template.  No monkeying with .htaccess is necessary.

This is how I do it on this site.  The front page at http://striderweb.com/ runs off of WordPress, but it&#039;s basically a hard HTML file.</description>
		<content:encoded><![CDATA[<p>Michael &#8211;</p>
<p>A better solution:  Make the index file into a WordPress template.  In WordPress, edit the front page and set its template to that new template.  No monkeying with .htaccess is necessary.</p>
<p>This is how I do it on this site.  The front page at <a href="http://striderweb.com/" >http://striderweb.com/</a> runs off of WordPress, but it&#8217;s basically a hard HTML file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-1616</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sun, 05 Oct 2008 21:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-1616</guid>
		<description>Hi Stephen,
Thanks for writing back. 
I came up with a &quot;not perfect solution&quot;

1.change the filename in the wordpress root from index.php to a filename like base.php

2.I use wordpress &gt;htaccess if you have permalinks enabled:
change in .htaccess in the line RewriteRule  index.php to base.php + make the file not writable, because as soon you add a page wordpress, wordpress rewrites the .htaccess 

results: 
www.domain.com -&gt; shows www.domain.com/index.htm
www.domain.com/anyPageNameFromWordpress -&gt; brings up wordpress
then you can navigate inside the wordpress files
If you have chosen page &quot;home&quot; as your static page that button brings you to shows www.domain.com/index.htm - although you can disable the static page choice and activate it when the site is launched in wordpress.

Hope this helps others
Michael</description>
		<content:encoded><![CDATA[<p>Hi Stephen,<br />
Thanks for writing back.<br />
I came up with a &#8220;not perfect solution&#8221;</p>
<p>1.change the filename in the wordpress root from index.php to a filename like base.php</p>
<p>2.I use wordpress &gt;htaccess if you have permalinks enabled:<br />
change in .htaccess in the line RewriteRule  index.php to base.php + make the file not writable, because as soon you add a page wordpress, wordpress rewrites the .htaccess </p>
<p>results:<br />
<a href="http://www.domain.com" rel="nofollow">http://www.domain.com</a> -&gt; shows <a href="http://www.domain.com/index.htm" >http://www.domain.com/index.htm</a><br />
<a href="http://www.domain.com/anyPageNameFromWordpress" >http://www.domain.com/anyPageNameFromWordpress</a> -&gt; brings up wordpress<br />
then you can navigate inside the wordpress files<br />
If you have chosen page &#8220;home&#8221; as your static page that button brings you to shows <a href="http://www.domain.com/index.htm" >http://www.domain.com/index.htm</a> &#8211; although you can disable the static page choice and activate it when the site is launched in wordpress.</p>
<p>Hope this helps others<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-1615</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Sun, 05 Oct 2008 15:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-1615</guid>
		<description>You might set the server settings so that .htm files take higher precedence than .php files.

Not sure if WordPress will like that though...</description>
		<content:encoded><![CDATA[<p>You might set the server settings so that .htm files take higher precedence than .php files.</p>
<p>Not sure if WordPress will like that though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-1614</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sun, 05 Oct 2008 04:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-1614</guid>
		<description>Hi,

I have an existing website in a directory with htm files - directory/index.htm
I have also installed wp in the same directory - directory/index.php

I would like that the request 
www.doamin.com/directory would use the index.htm
(currently the index.php overrides the index.htm)
but the wp should still work if I use for example 
www.doamin.com/directory/index.php
or www.doamin.com/directory/blog

I tried your above script but do not get it to work.
Any help appreciated.
Michael</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have an existing website in a directory with htm files &#8211; directory/index.htm<br />
I have also installed wp in the same directory &#8211; directory/index.php</p>
<p>I would like that the request<br />
<a href="http://www.doamin.com/directory" >http://www.doamin.com/directory</a> would use the index.htm<br />
(currently the index.php overrides the index.htm)<br />
but the wp should still work if I use for example<br />
<a href="http://www.doamin.com/directory/index.php" >http://www.doamin.com/directory/index.php</a><br />
or <a href="http://www.doamin.com/directory/blog" >http://www.doamin.com/directory/blog</a></p>
<p>I tried your above script but do not get it to work.<br />
Any help appreciated.<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/comment-page-1/#comment-1469</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Wed, 23 Jul 2008 21:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/2008/03/override-single-wordpress-pages-with-htaccess/#comment-1469</guid>
		<description>Jason --

The method described here completely overwrites a page with a static HTML page.  I don&#039;t think you can do it on WordPress.com.

If you mean modifying the template on an install you&#039;re hosting yourself... just modify the template files!</description>
		<content:encoded><![CDATA[<p>Jason &#8211;</p>
<p>The method described here completely overwrites a page with a static HTML page.  I don&#8217;t think you can do it on WordPress.com.</p>
<p>If you mean modifying the template on an install you&#8217;re hosting yourself&#8230; just modify the template files!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
