<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: Any .htaccess geniuses out there?</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Any .htaccess geniuses out there?</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 04:18:03 +0000</pubDate>

<item>
<title>richarduk on "Any .htaccess geniuses out there?"</title>
<link>http://wordpress.org/support/topic/286265#post-1125895</link>
<pubDate>Sat, 04 Jul 2009 13:26:05 +0000</pubDate>
<dc:creator>richarduk</dc:creator>
<guid isPermaLink="false">1125895@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks Shane, that didn't work but I got round it by creating a different custom permalink structure    /%postname%.php   &#60;/p&#62;
&#60;p&#62;Somehow, by pot luck, that did it.&#60;/p&#62;
&#60;p&#62;Now I've discovered that the cart code produces a url without a trailing slash. If I add a trailing slash I get a duplicate page. How can I make non-trailing slash and a trailing slash resolve to the same page?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([A-Za-z0-9]+)(/)?$ proddetail.php?prod=$1 [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /proddetail\.php\?prod=([^&#38;amp;]+)\ HTTP/
RewriteRule ^proddetail\.php$ &#60;a href=&#34;http://www.mysite.co.uk/%1?&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.co.uk/%1?&#60;/a&#62; [R=301,L]&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Shane G on "Any .htaccess geniuses out there?"</title>
<link>http://wordpress.org/support/topic/286265#post-1125748</link>
<pubDate>Sat, 04 Jul 2009 08:06:16 +0000</pubDate>
<dc:creator>Shane G</dc:creator>
<guid isPermaLink="false">1125748@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Add this in htaccess:&#60;/p&#62;
&#60;p&#62;# BEGIN WordPress&#60;/p&#62;
&#60;p&#62;&#38;lt;IfModule mod_rewrite.c&#38;gt;&#60;br /&#62;
ErrorDocument 404 /index.php?error=404&#60;br /&#62;
RewriteEngine On&#60;br /&#62;
RewriteBase /&#60;br /&#62;
RewriteCond %{REQUEST_FILENAME} !-f&#60;br /&#62;
RewriteCond %{REQUEST_FILENAME} !-d&#60;br /&#62;
RewriteRule . /index.php [L]&#60;br /&#62;
&#38;lt;/IfModule&#38;gt;&#60;/p&#62;
&#60;p&#62;# END WordPress&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Shane G.
&#60;/p&#62;</description>
</item>
<item>
<title>richarduk on "Any .htaccess geniuses out there?"</title>
<link>http://wordpress.org/support/topic/286265#post-1124796</link>
<pubDate>Fri, 03 Jul 2009 13:20:52 +0000</pubDate>
<dc:creator>richarduk</dc:creator>
<guid isPermaLink="false">1124796@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Bit of an advanced question, possibly, but here goes.&#60;/p&#62;
&#60;p&#62;I have a shopping cart within a WP installation&#60;/p&#62;
&#60;p&#62;I've found some mod rewrite code that will change the urls of the shopping cart to nicer-looking urls&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.mysite.co.uk/proddetail.php?prod=monitor&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.co.uk/proddetail.php?prod=monitor&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;goes to&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.mysite.co.uk/monitor&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.co.uk/monitor&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;However, this now rewrites the single posts in WordPress and sends me back into the shopping cart error page.&#60;/p&#62;
&#60;p&#62;Has anyone got the skill to disentangle this problem for me?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([A-Za-z0-9]+)(/)?$ proddetail.php?prod=$1 [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /proddetail\.php\?prod=([^&#38;amp;]+)\ HTTP/
RewriteRule ^proddetail\.php$ &#60;a href=&#34;http://www.mysite.co.uk/%1?&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.co.uk/%1?&#60;/a&#62; [R=301,L]

# BEGIN WordPress
&#38;lt;IfModule mod_rewrite.c&#38;gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&#38;lt;/IfModule&#38;gt;

# END WordPress&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
