2012-11-15 5 views
0

두 개의 도메인이 공유하는 응용 프로그램이 있습니다. domain1.com과 domain2.com 모두 가상 디렉토리에 있습니다URL 재 작성

RewriteEngine on 
Options +FollowSymlinks 
RewriteRule ^/application(.*)$ c:/server/web/application/www/$1 

그래서 domain1.com/application과에 domain2.com/application 두 점, 그리고 내가 그나마 물리적에서 응용 프로그램을 넣어해야 각 도메인 아래의 폴더

domain1.com/application/account/0322734174/notes/desc 

대신 :

지금, 나는 깊은 URL이 '더 좋은'찾아 가지고 시작하려는

domain1.com/application/account/index.php?number=0322734174&view=notes&sort=desc 

하지만 문제는 어떤 작업을 받고, 모든 것을 가진 해요 그 나는 아무것도하지 않는다. 나는 그 규칙이 충돌한다고 생각하니? 필자는 반나절을 찾고 있었고, 지금 당신에게 돌아갑니다. 감사합니다.

+1

지금까지 시도한 것을 보여주세요. – davidethell

+0

^(. *) $ /index.php?number=$1과 같은 내용을 모두 가져온 다음 $ _GET [ 'number']를 에코 폴더에 넣고 account/0322734174를 시도하고 페이지를 찾을 수 없습니다. 심지어 시도했다 .htaccess – bdscorvette

+0

위 질문에 시도한 규칙을 추가하십시오. – davidethell

답변

0

알아 냈습니다.

RewriteLog 
RewriteLogLevel 4 

당신의 친구 (플러스 시행 착오와 많은 시간)

Options +FollowSymlinks 
RewriteEngine on 
RewriteRule ^/application/(.*)$ c:/server/web/application/www/$1 
RewriteRule ^c:/server/web/application/www/account/([^/\.]+)/?$ c:/server/web/application/www/account/index.php?action=$1 

작품이다. 첫 번째 규칙 이후 절대 경로를 사용해야했습니다.

감사합니다.