-1

CodeIgniterフレームワークを学ぶためのテスト壁紙アプリを作成しています。

これを達成する方法:

「wallpapers.example.comに入ると、フルリンクにリダイレクトする代わりに、ホームページがwallpapers.example.comで開き、URLから「/earthplanet/index.php/」を除外したい。

4

1 に答える 1

0

これを.htaccessファイルに書き込んで、subdomain / index.php/whatever_your_url_isにリダイレクトします

RewriteEngine on
RewriteRule ^(.*)$ /earthplanet/index.php/$1 [L]

そして参考までに、あなたはきれいなURLのCodeigniterがあなたに提供するものを使うべきです:

http://wallpapers.studentbro.com/earthplanet/index.php/freewallpapers?wallis=Nature%20Wallpapers

する必要があります:

http://wallpapers.studentbro.com/earthplanet/index.php/freewallpapers/Nature/Wallpapers
于 2012-07-15T10:37:36.273 に答える