0
我已經在關於相關問題的論壇,讀的時候,我們在OAI註冊mod_rewrite的使用mod_rewrite擺脫,所以我用這個htaccess的代碼HOW-TO:「?」的URL
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?journal=$1 [QSA,L]
並修改「config.inc.php文件」和「config.TEMPLATE.inc.php」到
base_url[index] = http://www.ust.edu/ojs
base_url[myJournal] = http://www.ust.edu/ojs
restful_urls = on
但它從URL只刪除「的index.php」的結果,一個問題人物「? 「還是像「http://www.ust.edu/ojs/?journal=yjmp‘它使得疑難問題的URL想要的網址是像’ yjmp」 請幫我 感謝
感謝重播..我也會唱path_info_disabled爲「關」,但htaccess文件只有擺脫index.php的問號仍然 網址已成爲 的「http:// mysite的/ OJS /雜誌= yjmp」 請幫我,我想擺脫ojs的url問號 謝謝 – fadia
如果你仍然有?journal = ...出現在你的URL中,並且已經關閉了disable_path_info,它可能是你的一個重寫規則。 – asmecher
當我做disable_path_info是「關閉」的結果是「沒有指定輸入文件」。我做htaccess就像RewriteRule ^(。*)$ index.php/journal/$ 1 [R = 301,L,NC] ..可以幫助我嗎?請 – fadia