我已經在我的public_html.So我的鏈接文件夾「雜誌」是這樣的:mod_rewrite的禁用舊鏈接
site/journals/index.php/journal1
,site/journals/index.php/journal2
等(journal1,journal2只是illustration.It可能是技術,藝術等。 )
我有(在Jon的幫助下).htaccess使site/journals/index.php/journal1
顯示爲site/index.php/journal1
。
但我仍然能夠訪問/查看site/journals/index.php/journal1
。
我想要禁用site/journals/index.php/journal1
並且只有site/index.php/journal1
應該是可見的。請讓我知道我該怎麼做。
請查閱this瞭解更多信息。
這裏是根現有的.htaccess(/)文件夾
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/sunder
RewriteRule ^index\.php(.*)$ /sunder/index.php$1? [L]
</IfModule>
它不僅僅是journal1,journal2-那是一個插圖。在journals/index.php後面,我可能會放上不同的名字 - 比如技術,藝術等等。 – MBanerjee
然後,你應該花點時間改進你的問題,難道你不知道嗎?認爲? – aefxx
不過,我已經爲你更新了我的答案。 – aefxx