<?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>Fri, 03 Feb 2012 05:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<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>admin_mwc</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.</p>
<p>What &#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>
<pre class="brush: php; title: ; notranslate">
RULE_0_START:
# get the document root
map path into SCRATCH:DOCROOT from /
# initialize our variables
set SCRATCH:ORIG_URL = %{URL}
set SCRATCH:REQUEST_URI = %{URL}
# see if theres any queries in our URL
match URL into $ with ^(.*)\?(.*)$
if matched then
set SCRATCH:REQUEST_URI = $1
set SCRATCH:QUERY_STRING = $2
endif
RULE_0_END:
RULE_1_START:
# prepare to search for file, rewrite if its not found
set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT}
set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}
# check to see if the file requested is an actual file or
# a directory with possibly an index. don’t rewrite if so
look for file at %{SCRATCH:REQUEST_FILENAME}
if not exists then
look for dir at %{SCRATCH:REQUEST_FILENAME}
if not exists then
set URL = /index.php?q=%{SCRATCH:REQUEST_URI}
goto QSA_RULE_START
endif
endif
# if we made it here then its a file or dir and no rewrite
goto END
RULE_1_END:
QSA_RULE_START:
# append the query string if there was one originally
# the same as [QSA,L] for apache
match SCRATCH:ORIG_URL into % with \?(.*)$
if matched then
set URL = %{URL}&amp;amp;%{SCRATCH:QUERY_STRING}
endif
goto END
QSA_RULE_END:
</pre>
<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>

