<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023986" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023986</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shorten-url-listing#comment-1147121</link>
    <description> &lt;p&gt;Congratulations! I hope it helps people as well, cos it took me absolutly ages to get my head round it when I first wanted to use it!&lt;/p&gt;
 </description>
     <pubDate>Mon, 08 Mar 2004 09:05:57 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1147121 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shorten-url-listing#comment-1147048</link>
    <description> &lt;p&gt;Hello Andy,&lt;/p&gt;
&lt;p&gt;I got this to work great.&lt;/p&gt;
&lt;p&gt;RewriteCond %{REQUEST_URI} ^/([0-9]+)$&lt;br /&gt;
RewriteRule ^(.*) /listingview.php?listingID=%1 [L,R]&lt;/p&gt;
&lt;p&gt;This produces this:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mysite.com/17&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/17&lt;/a&gt; or another variable &lt;/p&gt;
&lt;p&gt;Very Simple and clean, just what I needed!&lt;/p&gt;
&lt;p&gt;Hope this thread helps someone else down the trail!&lt;/p&gt;
&lt;p&gt;Thanks  for the look and see and input on this issue.&lt;/p&gt;
&lt;p&gt;NYColt&lt;/p&gt;
 </description>
     <pubDate>Sun, 07 Mar 2004 16:40:49 +0000</pubDate>
 <dc:creator>NYColt</dc:creator>
 <guid isPermaLink="false">comment 1147048 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shorten-url-listing#comment-1147016</link>
    <description> &lt;p&gt;I  added the code to a .htaccess file but I get a &quot;page cannot be found&quot; message.&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Mar 2004 19:47:21 +0000</pubDate>
 <dc:creator>NYColt</dc:creator>
 <guid isPermaLink="false">comment 1147016 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shorten-url-listing#comment-1147014</link>
    <description> &lt;p&gt;great I will try that and let you know how it works&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Mar 2004 19:28:35 +0000</pubDate>
 <dc:creator>NYColt</dc:creator>
 <guid isPermaLink="false">comment 1147014 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shorten-url-listing#comment-1146997</link>
    <description> &lt;p&gt;If you use Unix/Linux hosting you could use mod rewrite to redirect to make the url look something like &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mysite.com/listing/17&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/listing/17&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You would need to add something like this to either your httpd.conf or a .htaccess file&lt;/p&gt;
&lt;p&gt;&lt;code&gt;RewriteRule ^/listing/\([0-9]{1,4})$ /listingview.php?newsID=$1 [L]&lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;I think that should work. Can&#039;t promise you though... its not really one of my specialities. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Mar 2004 16:03:40 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1146997 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shorten-url-listing#comment-1146992</link>
    <description> &lt;p&gt;Well,&lt;/p&gt;
&lt;p&gt;I have a website where customers place ads.&lt;/p&gt;
&lt;p&gt;The actual link from within the website would  be, as an example:&lt;a href=&quot;http://www.mysite.com/listingview.php?listingID=17&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/listingview.php?listingID=17&lt;/a&gt;&lt;br /&gt;
                               or&lt;br /&gt;
&lt;a href=&quot;http://www.mysite.com/listingview.php?listingID=18&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/listingview.php?listingID=18&lt;/a&gt;&lt;br /&gt;
and so on....&lt;/p&gt;
&lt;p&gt;I would like to shorten the link to something like:&lt;br /&gt;
&lt;a href=&quot;http://www.mysite.com/listingID=17&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/listingID=17&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So that if the advertiser has a newspaper ad they can include the simple internet link &lt;a href=&quot;http://www.mysite.com/listingID=17&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/listingID=17&lt;/a&gt;  in the add rather than&lt;br /&gt;
the more difficult:&lt;br /&gt;
&lt;a href=&quot;http://www.mysite.com/listingview.php?listingID=17&quot; class=&quot;bb-url&quot;&gt;http://www.mysite.com/listingview.php?listingID=17&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Does that make sense?&lt;/p&gt;
&lt;p&gt;NYColt&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Mar 2004 13:53:59 +0000</pubDate>
 <dc:creator>NYColt</dc:creator>
 <guid isPermaLink="false">comment 1146992 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shorten-url-listing#comment-1146991</link>
    <description> &lt;p&gt;Please be more elaborate....&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Mar 2004 13:39:49 +0000</pubDate>
 <dc:creator>chandubhai</dc:creator>
 <guid isPermaLink="false">comment 1146991 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
