<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unexplained mod_rewrite errors in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/Unexplained-mod-rewrite-errors/m-p/28437#M13441</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So.. where to begin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a site for a client that is hoted with BT Business, so I thought this might be the best place to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used these rewrite rules numerous times before and numerous occasions and never had any issues. The site is working fine with the rewrites on our development server, but as soon as it was uploaded on the BT Business server the rewrites don't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mod_rewrite is enabled. I am working within a subdirectory. Their is a .htaccess file in the root directory but it has very basic rules in there (a few redirects and 1 rewrite to force www.) and it is not interfering with mine. Furthermore, I've tried a very basic rewrite in their (Ie. rewrite a.html to b.html) and the same error occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recieve a 404 error for every rewrite and I have a sneaking suspicion it's something to do with the paths.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 404 page says this page is not available : -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/l/i/domain.com/public/wedding-venues-and-caterers-news/Pages/news.php﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if I browse to news.php directly and echo the path - the path is: -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/services/webpages/l/i/domain.com/public/wedding-venues-and-caterers-news/Pages/news.php﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And just incase anyone wants to see my .htaccess (even though i'm 99.9% sure it's a server issue) : -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^$ Pages/news.php  
RewriteRule ^images/([0-9]+)/([0-9]+)/(0|1)/(.*).jpg?$ Classes/Image/timthumb.php?src=&lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/images/$4.jpg&amp;amp;h=$1&amp;amp;w=$2&amp;amp;zc=$3"&gt;http://www.domain.com/wedding-venues-and-caterers-news/images/$4.jpg&amp;amp;h=$1&amp;amp;w=$2&amp;amp;zc=$3&lt;/A&gt;
RewriteRule ^([A-Za-z0-9\-]+)/([0-9]+)/([0-9]+)(/)?$ Pages/archives.php?cat_id=$2&amp;amp;page=$3 [NC,L]
RewriteRule ^archives/mon/([0-9]+)/yr/([0-9]+)/([0-9]+)$ Pages/archives.php?mon=$1&amp;amp;yr=$2&amp;amp;page=$3 [NC,L]
RewriteRule ^([A-Za-z0-9\-]+)/([0-9]+)(/)?$ Pages/archives.php?cat_id=$2 [NC,L] 
RewriteRule ^archives/mon/([0-9]+)/yr/([0-9]+)(/)?$ Pages/archives.php?mon=$1&amp;amp;yr=$2 [NC,L]
RewriteRule ^([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/([0-9]+)(/)?$ Pages/article.php?art_id=$3 [NC,L]
RewriteRule ^wedding-venues-catering-rss(/)?$ rss/rss.php [NC,L]
RewriteRule ^Page-Error(/)?$ Pages/errorPage.php [NC,L]
ErrorDocument 404 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 401 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 403 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 404 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 500 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can help solve this I will be more than eternally grateful; as I type this I am debating launching computer out of office window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you guys,&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2011 09:21:38 GMT</pubDate>
    <dc:creator>DannyL</dc:creator>
    <dc:date>2011-07-26T09:21:38Z</dc:date>
    <item>
      <title>Unexplained mod_rewrite errors</title>
      <link>https://business.forums.bt.com/t5/Archive/Unexplained-mod-rewrite-errors/m-p/28437#M13441</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So.. where to begin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a site for a client that is hoted with BT Business, so I thought this might be the best place to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used these rewrite rules numerous times before and numerous occasions and never had any issues. The site is working fine with the rewrites on our development server, but as soon as it was uploaded on the BT Business server the rewrites don't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mod_rewrite is enabled. I am working within a subdirectory. Their is a .htaccess file in the root directory but it has very basic rules in there (a few redirects and 1 rewrite to force www.) and it is not interfering with mine. Furthermore, I've tried a very basic rewrite in their (Ie. rewrite a.html to b.html) and the same error occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recieve a 404 error for every rewrite and I have a sneaking suspicion it's something to do with the paths.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 404 page says this page is not available : -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/l/i/domain.com/public/wedding-venues-and-caterers-news/Pages/news.php﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if I browse to news.php directly and echo the path - the path is: -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/services/webpages/l/i/domain.com/public/wedding-venues-and-caterers-news/Pages/news.php﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And just incase anyone wants to see my .htaccess (even though i'm 99.9% sure it's a server issue) : -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^$ Pages/news.php  
RewriteRule ^images/([0-9]+)/([0-9]+)/(0|1)/(.*).jpg?$ Classes/Image/timthumb.php?src=&lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/images/$4.jpg&amp;amp;h=$1&amp;amp;w=$2&amp;amp;zc=$3"&gt;http://www.domain.com/wedding-venues-and-caterers-news/images/$4.jpg&amp;amp;h=$1&amp;amp;w=$2&amp;amp;zc=$3&lt;/A&gt;
RewriteRule ^([A-Za-z0-9\-]+)/([0-9]+)/([0-9]+)(/)?$ Pages/archives.php?cat_id=$2&amp;amp;page=$3 [NC,L]
RewriteRule ^archives/mon/([0-9]+)/yr/([0-9]+)/([0-9]+)$ Pages/archives.php?mon=$1&amp;amp;yr=$2&amp;amp;page=$3 [NC,L]
RewriteRule ^([A-Za-z0-9\-]+)/([0-9]+)(/)?$ Pages/archives.php?cat_id=$2 [NC,L] 
RewriteRule ^archives/mon/([0-9]+)/yr/([0-9]+)(/)?$ Pages/archives.php?mon=$1&amp;amp;yr=$2 [NC,L]
RewriteRule ^([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/([0-9]+)(/)?$ Pages/article.php?art_id=$3 [NC,L]
RewriteRule ^wedding-venues-catering-rss(/)?$ rss/rss.php [NC,L]
RewriteRule ^Page-Error(/)?$ Pages/errorPage.php [NC,L]
ErrorDocument 404 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 401 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 403 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 404 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;
ErrorDocument 500 &lt;A target="_blank" href="http://www.domain.com/wedding-venues-and-caterers-news/Page-Error"&gt;http://www.domain.com/wedding-venues-and-caterers-news/Page-Error&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can help solve this I will be more than eternally grateful; as I type this I am debating launching computer out of office window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you guys,&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 09:21:38 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/Unexplained-mod-rewrite-errors/m-p/28437#M13441</guid>
      <dc:creator>DannyL</dc:creator>
      <dc:date>2011-07-26T09:21:38Z</dc:date>
    </item>
  </channel>
</rss>

