2013-04-01 3 views
-3

것이다 htaccess로/mod_rewrite의 재 지정을 설정하는 도와주세요 example.com/any-posts.php to example.com/forum/any-posts.phphtaccess로 리디렉션

실제로 'example.com'에서 액세스중인 한 달 전에 포럼을 만들었지 만 지금은 모든 항목을/forum /과 같이 작동합니다 : example.com/forum/ folder.

감사합니다.

이 경우

답변

1

, 당신은 htaccess로는

RewriteEngine on 
RewriteRule ^(.*)$ /forum/$1 [L] 

해야

URL을 다시 작성해야하고 당신이 그것을

+0

감사 자크를 example.com/forum/에 example.com을 얻을 수 있지만 것 또한 작동합니다 : example.com/any-posts.php to example.com/forum/any-posts.php – user2233767

+0

모든 작업 .... example.com/any-posts.php to example.com/forum /any-posts.php example.com/anything ... to example.com/forum/anything ... –

+0

이 항목을 확인하는 것이 도움이 될 수 있습니다 http://stackoverflow.com/questions/15723942/rewriting-an-apache-redirect-rule/15724022#15724022 – ncm