0

私は問題があります。私の ojs インストールは /ojs というサブフォルダーにありますが、ルート フォルダーには joomla サイトがあります。

www.my_web_site.com (Joomla) www.my_web_site.com/ojs (OJS)

トピック mod-rewrite remove folder name from urlで説明されている方法 が機能しません。

私の OJS インストールには、「myissue」という名前の課題が 1 つしかありません

問題のホームページの URL は次のとおりです。 http://www.my_web_site.com/ojs/index.php/myissue

この新しいホームページの URL が欲しい : http://www.my_web_site.com/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

前もって感謝します。

4

1 に答える 1

1

DocumentRoot/.htaccess このルールをJoomla ルーティング ルールの直前に挿入します。

RewriteRule ^(myissue)/?$ /ojs/index.php/$1 [L,NC]
于 2015-01-17T09:33:21.183 に答える