特殊:Badtitle/NS100:Apache/EnablingModRewrite:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/Apache/EnablingModRewrite}} {{Languages|UbuntuHelp:Apache/EnablingModRewrite}} <code><nowiki>mod_rewrite</nowiki></code> was not enabled, by defau... |
小无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Apache/EnablingModRewrite}} | {{From|https://help.ubuntu.com/community/Apache/EnablingModRewrite}} | ||
{{Languages|UbuntuHelp:Apache/EnablingModRewrite}} | {{Languages|UbuntuHelp:Apache/EnablingModRewrite}} | ||
<code><nowiki>mod_rewrite</nowiki></code> was not enabled, by default, on my Apache installation. I am on Ubuntu 7.10 (which is in development, at present). To enable it, I simply issued the following | <code><nowiki>mod_rewrite</nowiki></code> was not enabled, by default, on my Apache installation. I am on Ubuntu 7.10 (which is in development, at present). To enable it, I simply issued the following command: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo a2enmod rewrite | |||
sudo | |||
</nowiki></pre> | </nowiki></pre> | ||
and then restart apache with: | |||
<pre><nowiki> | |||
sudo /etc/init.d/apache2 force-reload | |||
</nowiki></pre> | |||
To disable it, simply | |||
<pre><nowiki> | |||
sudo a2dismod rewrite | |||
</nowiki></pre> | |||
and then restart apache with the above command. | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 04:12的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Apache/EnablingModRewrite }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/af | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Afrikaans| [[::Apache/EnablingModRewrite/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ar | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|العربية| [[::Apache/EnablingModRewrite/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/az | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|azərbaycanca| [[::Apache/EnablingModRewrite/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/bcc | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|جهلسری بلوچی| [[::Apache/EnablingModRewrite/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/bg | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|български| [[::Apache/EnablingModRewrite/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/br | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|brezhoneg| [[::Apache/EnablingModRewrite/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ca | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|català| [[::Apache/EnablingModRewrite/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/cs | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|čeština| [[::Apache/EnablingModRewrite/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/de | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Deutsch| [[::Apache/EnablingModRewrite/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/el | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Ελληνικά| [[::Apache/EnablingModRewrite/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/es | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|español| [[::Apache/EnablingModRewrite/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/fa | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|فارسی| [[::Apache/EnablingModRewrite/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/fi | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|suomi| [[::Apache/EnablingModRewrite/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/fr | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|français| [[::Apache/EnablingModRewrite/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/gu | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|ગુજરાતી| [[::Apache/EnablingModRewrite/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/he | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|עברית| [[::Apache/EnablingModRewrite/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/hu | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|magyar| [[::Apache/EnablingModRewrite/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/id | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Bahasa Indonesia| [[::Apache/EnablingModRewrite/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/it | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|italiano| [[::Apache/EnablingModRewrite/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ja | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|日本語| [[::Apache/EnablingModRewrite/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ko | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|한국어| [[::Apache/EnablingModRewrite/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ksh | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Ripoarisch| [[::Apache/EnablingModRewrite/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/mr | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|मराठी| [[::Apache/EnablingModRewrite/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ms | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Bahasa Melayu| [[::Apache/EnablingModRewrite/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/nl | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Nederlands| [[::Apache/EnablingModRewrite/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/no | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|norsk| [[::Apache/EnablingModRewrite/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/oc | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|occitan| [[::Apache/EnablingModRewrite/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/pl | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|polski| [[::Apache/EnablingModRewrite/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/pt | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|português| [[::Apache/EnablingModRewrite/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ro | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|română| [[::Apache/EnablingModRewrite/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/ru | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|русский| [[::Apache/EnablingModRewrite/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/si | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|සිංහල| [[::Apache/EnablingModRewrite/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/sq | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|shqip| [[::Apache/EnablingModRewrite/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/sr | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|српски / srpski| [[::Apache/EnablingModRewrite/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/sv | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|svenska| [[::Apache/EnablingModRewrite/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/th | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|ไทย| [[::Apache/EnablingModRewrite/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/tr | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Türkçe| [[::Apache/EnablingModRewrite/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/vi | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|Tiếng Việt| [[::Apache/EnablingModRewrite/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/yue | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|粵語| [[::Apache/EnablingModRewrite/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/zh | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|中文| [[::Apache/EnablingModRewrite/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/zh-hans | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|中文(简体)| [[::Apache/EnablingModRewrite/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Apache/EnablingModRewrite | UbuntuHelp:Apache/EnablingModRewrite | {{#if: | :}}Apache/EnablingModRewrite}}/zh-hant | • {{#if: UbuntuHelp:Apache/EnablingModRewrite|中文(繁體)| [[::Apache/EnablingModRewrite/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Apache/EnablingModRewrite|:Apache/EnablingModRewrite|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Apache/EnablingModRewrite/zh | | {{#ifexist: Apache/EnablingModRewrite/zh | | {{#ifeq: {{#titleparts:Apache/EnablingModRewrite|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Apache/EnablingModRewrite|1|-1|}} | zh | | }}
mod_rewrite
was not enabled, by default, on my Apache installation. I am on Ubuntu 7.10 (which is in development, at present). To enable it, I simply issued the following command:
sudo a2enmod rewrite
and then restart apache with:
sudo /etc/init.d/apache2 force-reload
To disable it, simply
sudo a2dismod rewrite
and then restart apache with the above command.