<?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 Use of .htaccess - silent redirection not working in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/Use-of-htaccess-silent-redirection-not-working/m-p/22417#M12975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to be able to sliently redirect my primary domain name &lt;A target="_blank" href="http://www.mydomain.co.uk" rel="nofollow"&gt;www.mydomain.co.uk&lt;/A&gt; instead on pointing to /public i want to repoinrt to /public/sub_dir, but my .htaccess file continues to redirect and change the url on internet explorer to &lt;A target="_blank" href="http://www.mydomain.co.uk/sub_dir/index.html" rel="nofollow"&gt;www.mydomain.co.uk/sub_dir/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested this using apache on my PC and it works (without external redirection) so don;t understand why it wont work on the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My .htaccess content is .........&lt;/P&gt;&lt;P&gt;Options All&lt;BR /&gt;RewriteEngine On&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;#dont rewrite if uri is already at sub directory level&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;RewriteRule ^sub_dir.* - [L]&lt;BR /&gt;RewriteRule ^sub_dir1.* - [L]&lt;BR /&gt;RewriteRule ^cgi-bin.* - [L]&lt;BR /&gt;RewriteRule ^sub_dir2.* - [L]&lt;BR /&gt;RewriteRule ^images.* - [L]&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# redirect internally to sub_dir directory&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;RewriteRule ^$ sub_dir/index.html [L]&lt;/P&gt;&lt;P&gt;RewriteRule ^(.*)$ sub_dir/$1 [L]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should perform server redirection with external redirection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 19 Feb 2011 15:00:46 GMT</pubDate>
    <dc:creator>Telipur</dc:creator>
    <dc:date>2011-02-19T15:00:46Z</dc:date>
    <item>
      <title>Use of .htaccess - silent redirection not working</title>
      <link>https://business.forums.bt.com/t5/Archive/Use-of-htaccess-silent-redirection-not-working/m-p/22417#M12975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to be able to sliently redirect my primary domain name &lt;A target="_blank" href="http://www.mydomain.co.uk" rel="nofollow"&gt;www.mydomain.co.uk&lt;/A&gt; instead on pointing to /public i want to repoinrt to /public/sub_dir, but my .htaccess file continues to redirect and change the url on internet explorer to &lt;A target="_blank" href="http://www.mydomain.co.uk/sub_dir/index.html" rel="nofollow"&gt;www.mydomain.co.uk/sub_dir/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested this using apache on my PC and it works (without external redirection) so don;t understand why it wont work on the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My .htaccess content is .........&lt;/P&gt;&lt;P&gt;Options All&lt;BR /&gt;RewriteEngine On&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;#dont rewrite if uri is already at sub directory level&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;RewriteRule ^sub_dir.* - [L]&lt;BR /&gt;RewriteRule ^sub_dir1.* - [L]&lt;BR /&gt;RewriteRule ^cgi-bin.* - [L]&lt;BR /&gt;RewriteRule ^sub_dir2.* - [L]&lt;BR /&gt;RewriteRule ^images.* - [L]&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# redirect internally to sub_dir directory&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;RewriteRule ^$ sub_dir/index.html [L]&lt;/P&gt;&lt;P&gt;RewriteRule ^(.*)$ sub_dir/$1 [L]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should perform server redirection with external redirection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2011 15:00:46 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/Use-of-htaccess-silent-redirection-not-working/m-p/22417#M12975</guid>
      <dc:creator>Telipur</dc:creator>
      <dc:date>2011-02-19T15:00:46Z</dc:date>
    </item>
  </channel>
</rss>

