에서 재 작성 줌라를 활성화 한 후 찾을 수 없음 : 이것은 내/등/아파치/사이트-가능/내 사이트입니다404 2.5 URL 내가 로컬 호스트에 내 웹 사이트의 복사본이 로컬 호스트
/var/www/vhosts/mysite.com/httpdocs
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/vhosts/mysite.com/httpdocs
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
htaccess.txt를 .htaccess로 복사했습니다. 친숙한 URL 및 URL 재 작성을 활성화하면 404 오류가 발생합니다.
나는이 작동하지 않습니다 아직 htaccess로이 라인을 주석 처리 만했습니다
Options +FollowSymLinks
RewriteEngine On
RewriteBase/
나는 또한 행운과
RewriteBase /mysite
에 rewritebase을 변경했습니다.
내가 뭘 잘못하고있어?
안녕하세요. 아직 작동하지 않습니다. localhost (pure PHP)에 다른 사이트가 있고 URL 재 작성이 정상적으로 작동합니다. 어쨌든 고마워. – miquel