3
の背後にある物語を.htaccessファイル...適切userdir.confが
は[OK]を、私は私のネットブックで物事を試した...バックアップファイルをせずに。はい、私はバカだよ:D
問題
私は私partionを台無しにする前に適切に働いていた私のユーザーディレクトリ内でこの.htaccess
ファイルがあります:ユーザーディレクトリで
Options +FollowSymLinks
RewriteEngine On
RewriteBase /~dierre/DierReLabS/
RewriteRule ^(tutorials|me|not-found|add)$ $1/ [R=301,L]
RewriteRule ^me/$ me.php [L]
RewriteRule ^style/$ style.css [L]
RewriteRule ^logo/$ logo2.png [L]
RewriteRule ^add/$ add.php [L]
RewriteRule ^tutorials/$ tutorials.php [L]
RewriteRule ^tutorial/([a-zA-Z0-9\-]+)/$ tutorial.php?tut=$1 [L]
RewriteRule ^not-found/$ 404.php [L]
# This is a real directory...
RewriteCond %{REQUEST_FILENAME} -f [OR]
# Or it's a real file...
RewriteCond %{REQUEST_FILENAME} -d
# And it's not not-found/...
RewriteCond $0 !=not-found/
# And it's not the root
RewriteCond $0 !=""
# And it's not any of the above due to an internal redirect...
RewriteCond %{ENV:REDIRECT_STATUS} ^$
# So cause a 404 response (you could redirect to 404.php if you want)
RewriteRule ^.*$ - [R=404,L]
ErrorDocument 404 /~dierre/DierReLabS/not-found/
をこの.htaccess
は、userdir.conf
のデフォルトパラメータでは正常に動作しません。私はもはやその構成を持っていません。現在の設定は次のとおりです。
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
私が実際に行ったことは思い出せません。手伝って頂けますか?
あなたは何を期待している、と何が起こっているのでしょうか?私は問題が何であるかは分かりません。 – bradym
505エラーが発生しました。私はすべての利用可能なURLが唯一その.htaccessファイル内のものであることを期待しています。私はこの事実を知っています。私はuserdir.confに必要な変更を忘れました – dierre
あなたは505エラーを受け取っていますか?これは「HTTPバージョンがサポートされていません」と思われます。 –