2013-02-01 3 views
0

그래서 내가 겪고있는 문제는 .htaccess가 URL의 일부를 복제하고 있기 때문입니다. 기본적으로 내가 IPB는 루트/포럼/와 htaccess로 (아래 코드)에 설치 한 URL이 루트/포럼/포럼처럼 보이도록 여기에/.htaccess 중복 된 URL 추가

를 포럼 복제 htaccess로 코드입니다. htaccess로에서 /포럼 제거

<IfModule mod_rewrite.c> 
Options -MultiViews 
RewriteEngine On 
RewriteBase /forum/ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule \.(jpeg|jpg|gif|png)$ /forum/public/404.php [NC,L] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /forum/index.php [L] 
</IfModule> 

사이트를 나누기. 내 .htaccess 코드인가요? 아니면 다른 것입니까? 여기에 당신이 내 htaccess로이

답변

0

, 즉 ...

IfModule mod_rewrite.c> 
Options -MultiViews 
RewriteEngine On 
RewriteBase /forum/ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule \.(jpeg|jpg|gif|png)$ /forum/public/404.php [NC,L] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /forum/index.php [L] 
</IfModule> 

하여 동일 그리고 여기에 모든 작업 괜찮습니다. "forum"폴더 안에 포럼이 있습니다. adminCP에서 .htaccess mod_rewrite 설정을 활성화 했습니까 ??

이 URL (http://site.com/forum) 또는이 (http://forum.site.com)로 포럼에 액세스 하시겠습니까? 나는 첫 번째 것을 사용하고, 여기에서 좋은 ...