<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Maverick Web Creations &#187; .htaccess</title>
	<atom:link href="http://www.maverickwebcreations.com/tag/htaccess/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maverickwebcreations.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 10:12:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress Search Engine Friendly URLs on Zeus Web Servers</title>
		<link>http://www.maverickwebcreations.com/2008/08/14/wordpress-search-engine-friendly-urls-on-zeus-web-servers.html</link>
		<comments>http://www.maverickwebcreations.com/2008/08/14/wordpress-search-engine-friendly-urls-on-zeus-web-servers.html#comments</comments>
		<pubDate>Thu, 14 Aug 2008 14:41:05 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache HTTP Server]]></category>
		<category><![CDATA[Rewrite engine]]></category>
		<category><![CDATA[Web hosting service]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Zeus Web Server]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=91</guid>
		<description><![CDATA[<p>Today, I had to install WordPress on one of my client&#8217;s web host, which happens to be a Zeus web server. I have never used a Zeus Web Server in my life and I had no idea it does not support the same <span class="zem_slink">URL rewriting</span> syntax like Apache&#8217;s mod_rewrite.&#8230; <a href="http://www.maverickwebcreations.com/2008/08/14/wordpress-search-engine-friendly-urls-on-zeus-web-servers.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>Today, I had to install WordPress on one of my client&#8217;s web host, which happens to be a Zeus web server. I have never used a Zeus Web Server in my life and I had no idea it does not support the same <span class="zem_slink">URL rewriting</span> syntax like Apache&#8217;s mod_rewrite.</p>
<p>What that means is the .htaccess file of WordPress is invalid on a Zeus web server. I uploaded the .htaccess file to the root folder of the web host and it disappears after I refresh the root folder. I read this blog post on <a href="http://www.jafferabbas.com/technology/activate-wordpress-permalink-on-zeus/#more-28">how to activate WordPress permalinks on a Zeus web server</a> and solved the problem.</p>
<p>I did not do it by create a rewrite.scipt file in the root folder. Instead, I entered the following code from the blog post I mentioned above into the control panel of the Zeus web server.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">RULE_0_START<span style="color: #339933;">:</span>
<span style="color: #666666; font-style: italic;"># get the document root
</span>map path into SCRATCH<span style="color: #339933;">:</span>DOCROOT from <span style="color: #339933;">/</span>
<span style="color: #666666; font-style: italic;"># initialize our variables
</span>set SCRATCH<span style="color: #339933;">:</span>ORIG_URL <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>URL<span style="color: #009900;">&#125;</span>
set SCRATCH<span style="color: #339933;">:</span>REQUEST_URI <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>URL<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># see if theres any queries in our URL
</span>match URL into $ with ^<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>\?<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>$
<span style="color: #b1b100;">if</span> matched then
set SCRATCH<span style="color: #339933;">:</span>REQUEST_URI <span style="color: #339933;">=</span> $<span style="color: #cc66cc;">1</span>
set SCRATCH<span style="color: #339933;">:</span>QUERY_STRING <span style="color: #339933;">=</span> $<span style="color: #cc66cc;">2</span>
<span style="color: #b1b100;">endif</span>
RULE_0_END<span style="color: #339933;">:</span>
&nbsp;
RULE_1_START<span style="color: #339933;">:</span>
<span style="color: #666666; font-style: italic;"># prepare to search for file, rewrite if its not found
</span>set SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>DOCROOT<span style="color: #009900;">&#125;</span>
set SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME <span style="color: #339933;">.</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_URI<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># check to see if the file requested is an actual file or
</span><span style="color: #666666; font-style: italic;"># a directory with possibly an index. don’t rewrite if so
</span>look <span style="color: #b1b100;">for</span> <span style="color: #990000;">file</span> at <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> not exists then
look <span style="color: #b1b100;">for</span> <span style="color: #990000;">dir</span> at <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> not exists then
set URL <span style="color: #339933;">=</span> <span style="color: #339933;">/</span>index<span style="color: #339933;">.</span>php?q<span style="color: #339933;">=%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_URI<span style="color: #009900;">&#125;</span>
goto QSA_RULE_START
<span style="color: #b1b100;">endif</span>
<span style="color: #b1b100;">endif</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># if we made it here then its a file or dir and no rewrite
</span>goto <span style="color: #990000;">END</span>
RULE_1_END<span style="color: #339933;">:</span>
&nbsp;
QSA_RULE_START<span style="color: #339933;">:</span>
<span style="color: #666666; font-style: italic;"># append the query string if there was one originally
</span><span style="color: #666666; font-style: italic;"># the same as [QSA,L] for apache
</span>match SCRATCH<span style="color: #339933;">:</span>ORIG_URL into <span style="color: #339933;">%</span> with \?<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>$
<span style="color: #b1b100;">if</span> matched then
set URL <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>URL<span style="color: #009900;">&#125;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>QUERY_STRING<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">endif</span>
goto <span style="color: #990000;">END</span>
QSA_RULE_END<span style="color: #339933;">:</span></pre></td></tr></table></div>
<p>Here&#8217;s what it looks like:</p>
<p><img class="alignnone size-full wp-image-92" title="zeus-rewrite" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/zeus-rewrite.png" alt="WordPress Search Engine Friendly URLs on Zeus Web Servers" width="500" height="221" /></p>
<p>If you ask me, unless you have a very good reason to use a Zeus web server, get an Apache web server instead to avoid this little annoyance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/08/14/wordpress-search-engine-friendly-urls-on-zeus-web-servers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
