我有个问题。我的ojs安装在一个名为/ojs的子文件夹中,而根文件夹中有一个joomla站点:
www.my_web_site.com (Joomla) www.my_web_site.com/ojs (OJS)
在主题mod-rewrite remove folder name from url中描述的方法对我不起作用。
我的OJS安装只有一个问题,称为“我的问题”。
所以问题主页网址是:http://www.my_web_site.com/ojs/index.php/myissue
我想要这个新的主页网址: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提前谢谢。
发布于 2015-01-17 09:33:21
在DocumentRoot/.htaccess 中的Joomla路由规则之前插入此规则
RewriteRule ^(myissue)/?$ /ojs/index.php/$1 [L,NC]https://stackoverflow.com/questions/27997667
复制相似问题