<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038619" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038619</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/rewrite-help#comment-1225475</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Can you do condidtional Rewrites?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Um, I don&#039;t know for sure.&lt;/p&gt;
&lt;p&gt;RewriteCond %REQUEST_URI != /config.php&lt;br /&gt;
RewriteRule /(.*)$ /run/?mod=$1&amp;amp;cmd=view&lt;/p&gt;
&lt;p&gt;RewriteCond %REQUEST_URI != /config.php&lt;br /&gt;
RewriteRule /(.*)/(.*)$ /run/?mod=$1&amp;amp;cmd=$2&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteCond&quot; class=&quot;bb-url&quot;&gt;You might try that&lt;/a&gt;. I&#039;ve never really used them though.&lt;/p&gt;
 </description>
     <pubDate>Fri, 19 Oct 2007 16:47:06 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1225475 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/rewrite-help#comment-1225346</link>
    <description> &lt;p&gt;Can you do condidtional Rewrites?&lt;/p&gt;
&lt;p&gt;ie. I want to use the following:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;RewriteRule /(.*)$ /run/?mod=$1&amp;amp;cmd=view&lt;br /&gt;RewriteRule /(.*)/(.*)$ /run/?mod=$1&amp;amp;cmd=$2&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
so that &lt;strong&gt;https://www.whatever.com/employees/edit&lt;/strong&gt; woud take you to &lt;strong&gt;https://www.whatever.com/run/?mod=employees&amp;amp;cmd=edit&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;However, on our server we do have the need to directly browse to &lt;strong&gt;https://www.whatever.com/config&lt;/strong&gt; as it is &lt;em&gt;WITHOUT&lt;/em&gt; it rewriting it to &lt;strong&gt;https://www.whatever.com/run/?mod=config&amp;amp;cmd=view&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The reason being is there are about 3 subdirectories off of the domain that are already backend utilities already in place.&lt;/p&gt;
&lt;p&gt;Oh, and since I&#039;m writing anyway, how would i handle a needed qs value anyhow.&lt;/p&gt;
&lt;p&gt;Currenly for a few areas, I have a &quot;non standard&quot; value passed (every page has a &quot;mod&quot; and a &quot;cmd&quot;), but say I have the following:&lt;br /&gt;
&lt;strong&gt;https://www.whatever.com/run/?mod=employees&amp;amp;cmd=edit&amp;amp;gtype=i&lt;/strong&gt;&lt;br /&gt;
Now, I know I could do&lt;br /&gt;
&lt;code&gt;RewriteRule /(.*)/(.*)/(.*)$ /run/?mod=$1&amp;amp;cmd=$2&amp;amp;extra1=$3&lt;/code&gt;&#039;&lt;br /&gt;
and then in the code for that module do $type=$_GET[&#039;extra1&#039;]&lt;/p&gt;
&lt;p&gt;However, I&#039;d rather be able to actually call it as&lt;br /&gt;
&lt;strong&gt;https://www.whatever.com/run/employee/edit/?gtype=i&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Reason why are mainly becasue the the different mods that need the extra are as different variables, and one module can sometimes have 1 to 5 &quot;extra&quot; values.&lt;/p&gt;
&lt;p&gt;Note that this is not really for SEO, just for personal tastes. &lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Oct 2007 04:55:09 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1225346 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/rewrite-help#comment-1220014</link>
    <description> &lt;p&gt;I was going to say the same thing, been figuring out the same thing last week... btw check your rss and trackback links, they might be affected with the rewrite... and don&#039;t forget to post a permanently moved error line on htaccess for all your old posts so that those tracking the links won&#039;t get a 404... if it&#039;s a new blog, no problem..&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Jun 2007 02:39:55 +0000</pubDate>
 <dc:creator>demonhale</dc:creator>
 <guid isPermaLink="false">comment 1220014 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/rewrite-help#comment-1220009</link>
    <description> &lt;p&gt;Geez, a few minutes after I post I find a solution&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;Options +FollowSymLinks&lt;br /&gt;RewriteEngine on&lt;br /&gt;&lt;br /&gt;RewriteRule blog/(.*)/$ /blog.php?category=$1&lt;br /&gt;RewriteRule blog/(.*)/(.*)$ /blog.php?category=$1&amp;amp;post=$2&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Jun 2007 20:27:10 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1220009 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
