<?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>404 | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/404/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Sat, 14 Dec 2019 10:01:47 +0800</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3</generator>

<image>
	<url>https://sdt.hameba.tw/wp-content/uploads/2020/02/hameba_favicon-150x150.png</url>
	<title>404 | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>解決 WordPress 固定網址設定產生 404 錯誤</title>
		<link>https://sdt.hameba.tw/329/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e8%25a7%25a3%25e6%25b1%25ba-wordpress-%25e5%259b%25ba%25e5%25ae%259a%25e7%25b6%25b2%25e5%259d%2580%25e8%25a8%25ad%25e5%25ae%259a%25e7%2594%25a2%25e7%2594%259f-404-%25e9%258c%25af%25e8%25aa%25a4</link>
				<comments>https://sdt.hameba.tw/329/#respond</comments>
				<pubDate>Sat, 14 Dec 2019 10:00:26 +0000</pubDate>
		<dc:creator><![CDATA[Hsu Steven]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[固定網址]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=329</guid>
				<description><![CDATA[<p>最近新增Cache外掛需要把網址改成固定網址， 原本以為新增個.htaccess就可以，結果跑出404問題，  &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/329/" class="more-link">閱讀全文<span class="screen-reader-text">〈解決 WordPress 固定網址設定產生 404 錯誤〉</span></a></p>
The post <a href="https://sdt.hameba.tw/329/">解決 WordPress 固定網址設定產生 404 錯誤</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>最近新增Cache外掛需要把網址改成固定網址，</p>
<p>原本以為新增個.htaccess就可以，結果跑出404問題，</p>
<p><span id="more-329"></span></p>
<p>幸好解決方式不難，可以參考以下步驟，</p>
<p>主要就是啟動apache mod_rewrite功能，</p><pre class="crayon-plain-tag">$ sudo a2enmod rewrite</pre><p>到/etc/apache2/sites-enabled/000-default.conf(依各自系統為準)</p><pre class="crayon-plain-tag">$ sudo nano /etc/apache2/sites-enabled/000-default.conf 

# 在&lt;VirtualHost *:80&gt;上方加入以下語句
&lt;Directory "/var/www/wordpress/"&gt;
    AllowOverride All
&lt;/Directory&gt;
# 儲存離開

# 重啟apache即可
$ sudo service apache2 restart</pre><p>&nbsp;</p>
<p>Reference</p>
<p><a href="https://diary.taskinghouse.com/posts/664222-resolved-wordpress-permalinks-404-error/">https://diary.taskinghouse.com/posts/664222-resolved-wordpress-permalinks-404-error/</a></p>The post <a href="https://sdt.hameba.tw/329/">解決 WordPress 固定網址設定產生 404 錯誤</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/329/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
