2015-01-17 2 views
0

문제가 있습니다.OJS 모드 재 작성 URL에서 폴더 이름을 제거하는 방법은 무엇입니까?

www.my_web_site.com (줌라) www.my_web_site.com/ojs (OJS)

: 루트 폴더에 줌라 사이트가있는 동안 내 OJS 설치/OJS라는 하위 폴더에

토픽 mod-rewrite remove folder name from url 에 설명 된 방법이 작동하지 않습니다. http://www.my_web_site.com/myissue

: http://www.my_web_site.com/ojs/index.php/myissue

나는이 새로운 홈페이지 URL을 원하는 :

내 OJS 설치 그래서 문제의 홈페이지 URL은 "myissue"

라는 이름의 하나의 문제를 가지고 내 .htaccess :

DirectoryIndex index.php 

# Turn mod_rewrite on 
RewriteEngine On 
RewriteBase /ojs 
RewriteRule ^admin(.*)$ index.php/index/admin$1 [L] 

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 

#RewriteRule ^(.*)$ index.php/$1 [L] 
RewriteRule ^(.*)$ index.php/$1 [QSA,L] 

내 config.inc.php를 : 사전에

; The canonical URL to the OJS installation (excluding the trailing slash) 
base_url = "http://www.my_web_site.com/ojs" 

base_url[index] = http://www.my_web_site.com/ojs/ 
base_url[myJournal] = http://www.my_web_site.com/ojs/myissue/ 

restful_urls = On 

감사합니다.

+0

안녕하세요! 이후 Joomla에는 자체 StackExchange 사이트가 있습니다 : [joomla.stackexchange.com] (http://joomla.stackexchange.com). 나는 너의 미래 [tag : joomla] - 관련 질문을 거기서 묻는 것을 추천한다. – miroxlav

답변

1

DocumentRoot/.htaccess그냥 줌라 전에 라우팅 규칙에이 규칙을 삽입 :

RewriteRule ^(myissue)/?$ /ojs/index.php/$1 [L,NC] 
+0

안녕하세요 anubhava, Joomla의 .htaccess에서 무슨 뜻입니까? – stefanoruster

+0

예, 저는 그것이 DocumentRoot 자체에 있다고 생각합니다. – anubhava

+0

감사합니다. 작동합니다. :-)이 규칙은 리디렉션되지만 URL을 다시 쓰고 싶다면 (/ ojs 부분을 명확히 제거하십시오)? – stefanoruster