CodeIgniterフレームワークを学ぶためのテスト壁紙アプリを作成しています。
これを達成する方法:
「wallpapers.example.comに入ると、フルリンクにリダイレクトする代わりに、ホームページがwallpapers.example.comで開き、URLから「/earthplanet/index.php/」を除外したい。
CodeIgniterフレームワークを学ぶためのテスト壁紙アプリを作成しています。
これを達成する方法:
「wallpapers.example.comに入ると、フルリンクにリダイレクトする代わりに、ホームページがwallpapers.example.comで開き、URLから「/earthplanet/index.php/」を除外したい。
これを.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