0

Apache の RewriteRule を使用して、どのように機能させることができますか:

mydomain.com/webpage.php?name=home_page

簡単に:

mydomain.com/

実際に物理的な index.html ファイルを持っていないのですか?

4

1 に答える 1

1

After clarifying the question in the comments, the poster wants 'http://mydomain.com' to internally redirect to 'http://mydomain.com/webpage.php?name=home_page' (without changing the URL in the browser's address bar). Adding the following to .htaccess should do the trick:

RewriteEngine on
RewriteRule ^$ webpage.php?name=home_page [L]
于 2013-01-22T04:14:31.847 に答える