<?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 Re: Apache2 rewrite rules in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/apache2-rewrite-rules/m-p/4420571#M36557</link>
    <description>The rewrite rules only manipulate requests coming in from the browser, not the replies going out from the server.&lt;BR /&gt;&lt;BR /&gt;Rewriting your long URL to point to the short URL would only make the long URL impossible to reach: any attempts to access it would only return the title page of your domain instead.&lt;BR /&gt;&lt;BR /&gt;Usually the hiding of the long links is performed by first sending a frameset to the browser, then updating only the inner frames of the frameset. (i.e. the short URL sends the frameset and a some sort of session key, which might be a session cookie or a field in the inner-page URLs. If someone tries to access the inner pages without a valid session key, they can be redirected to the title page to pick up the frameset first.)&lt;BR /&gt;&lt;BR /&gt;Of course, all data you send to the browser will be accessible to the user in some way: don't build your site security on the assumption that "nobody uses View Source".&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Fri, 15 May 2009 07:16:29 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2009-05-15T07:16:29Z</dc:date>
    <item>
      <title>Apache2 rewrite rules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache2-rewrite-rules/m-p/4420570#M36556</link>
      <description>Hi there&lt;BR /&gt;I need to hide some parts of the links in my domain:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.my-domain.pl/1275-long-xdgt-bbbb-ccc-p-124.html?sale=LG-12.75-long-xdgt-bbbb-ccc" target="_blank"&gt;http://www.my-domain.pl/1275-long-xdgt-bbbb-ccc-p-124.html?sale=LG-12.75-long-xdgt-bbbb-ccc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I want to show only &lt;A href="http://www.my-domain.pl/" target="_blank"&gt;http://www.my-domain.pl/&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;I also have some rules but they don't work:&lt;BR /&gt;&lt;BR /&gt;RewriteEngine On&lt;BR /&gt;&lt;BR /&gt;rewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html?)\ HTTP/&lt;BR /&gt;rewriteRule ^index\.(php|html?)$ &lt;A href="http://www.my-domain.pl/" target="_blank"&gt;http://www.my-domain.pl/&lt;/A&gt; [R=301,L]&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;rewriteCond %{HTTP_HOST} ^&lt;A href="http://www.www.my-domain.pl" target="_blank"&gt;www.www.my-domain.pl&lt;/A&gt;\.pl&lt;BR /&gt;rewriteRule (.*) &lt;A href="http://www.my-domain.pl/$1" target="_blank"&gt;http://www.my-domain.pl/$1&lt;/A&gt; [R=301.L]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm still getting very long strings in the address bar.&lt;BR /&gt;&lt;BR /&gt;Is there anyone who could explain why the rules wan't work ?&lt;BR /&gt;&lt;BR /&gt;Reagrds&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 15 May 2009 02:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache2-rewrite-rules/m-p/4420570#M36556</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2009-05-15T02:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Apache2 rewrite rules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache2-rewrite-rules/m-p/4420571#M36557</link>
      <description>The rewrite rules only manipulate requests coming in from the browser, not the replies going out from the server.&lt;BR /&gt;&lt;BR /&gt;Rewriting your long URL to point to the short URL would only make the long URL impossible to reach: any attempts to access it would only return the title page of your domain instead.&lt;BR /&gt;&lt;BR /&gt;Usually the hiding of the long links is performed by first sending a frameset to the browser, then updating only the inner frames of the frameset. (i.e. the short URL sends the frameset and a some sort of session key, which might be a session cookie or a field in the inner-page URLs. If someone tries to access the inner pages without a valid session key, they can be redirected to the title page to pick up the frameset first.)&lt;BR /&gt;&lt;BR /&gt;Of course, all data you send to the browser will be accessible to the user in some way: don't build your site security on the assumption that "nobody uses View Source".&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 15 May 2009 07:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache2-rewrite-rules/m-p/4420571#M36557</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-05-15T07:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apache2 rewrite rules</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache2-rewrite-rules/m-p/4420572#M36558</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;To achieve this goal, re-arrange the content on the server to a different layout.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 15 May 2009 10:50:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache2-rewrite-rules/m-p/4420572#M36558</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-15T10:50:35Z</dc:date>
    </item>
  </channel>
</rss>

