<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1039010" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1039010</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/modrewrite-help#comment-1221765</link>
    <description> &lt;p&gt;I am accepting the user id - only the page url also has to specify the page it is loading up.&lt;/p&gt;
&lt;p&gt;for instance: &lt;a href=&quot;http://www.domain.com/index.php?action=2&amp;amp;id=4&quot; class=&quot;bb-url&quot;&gt;domain.com/index.php?action=2&amp;amp;id=4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the action specifies what page or action is taking place - in this case action 2 is a profile page and the id is the users id.&lt;/p&gt;
&lt;p&gt;is there a way to rewrite the url so it undertands the action but does not show it, and renames the id to the users username and puts a backslash in front of it like this:&lt;/p&gt;
&lt;p&gt;from:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.domain.com/index.php?action=2&amp;amp;id=4&quot; class=&quot;bb-url&quot;&gt;domain.com/index.php?action=2&amp;amp;id=4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.domain.com/username&quot; class=&quot;bb-url&quot;&gt;domain.com/username&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;or would it have to be:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.domain.com/profile/username&quot; class=&quot;bb-url&quot;&gt;domain.com/profile/username&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 17 Jul 2007 15:39:17 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1221765 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/modrewrite-help#comment-1221750</link>
    <description> &lt;p&gt;Your going to have to modify your php script to accept the user id.  Once you do that, it&#039;s easy.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote:&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteRule ^([A-Za-z0-9_\-]+)/           $path/to/script.php?user=$1 [L]
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;ILoveJackDaniels.com&#039;s &lt;a href=&quot;http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/&quot; class=&quot;bb-url&quot;&gt;cheat sheet&lt;/a&gt; is a nice reference for this.&lt;/p&gt;
 </description>
     <pubDate>Tue, 17 Jul 2007 13:50:43 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1221750 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
