<?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>三一日志</title>
	<atom:link href="https://sanywork.com/feed" rel="self" type="application/rss+xml" />
	<link>https://sanywork.com</link>
	<description>生活、工作、学习等点滴记录</description>
	<lastBuildDate>Thu, 20 Aug 2020 16:29:36 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.18</generator>
	<item>
		<title>实测有效，Ubuntu 16 Apache实现伪静态</title>
		<link>https://sanywork.com/12.html</link>
		
		<dc:creator><![CDATA[sanywork]]></dc:creator>
		<pubDate>Thu, 20 Aug 2020 16:21:57 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://sanywork.com/?p=12</guid>

					<description><![CDATA[Apache开启伪静态功能 输入命令： sudo a2enmod出现提示一堆模块列表后，输...]]></description>
										<content:encoded><![CDATA[
<h2>Apache开启伪静态功能</h2>



<p>输入命令：</p>



<p><code>sudo a2enmod</code><br>出现提示一堆模块列表后，输入：<br>rewrite<br>完成之后，重启apache：<br>sudo /etc/init.d/apache2 restart<br></p>



<h2>设置Apache站点配置文件</h2>



<p>找到站点配置文件，以apache默认站点为例：</p>



<ol><li>用编辑器打开站点配置文件：/etc/apache2/sites-enabled/000-default</li><li>Directory设置为：</li></ol>



<p><code>Options FollowSymLinks<br>AllowOverride All</code></p>



<p>整个设置如图：</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="427" height="131" src="https://sanywork.com/wp-content/uploads/2020/08/image.png" alt="" class="wp-image-15"/></figure>



<p>3. 重启Apache</p>



<p><code>sudo /etc/init.d/apache2 restart</code></p>



<h2>站点放入.htaccess文件，恭喜伪静态生效！</h2>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
