Problem using URL rewrite (Relative Paths not working)

こ雲淡風輕ζ 提交于 2019-11-29 15:17:35
Gumbo

This is a URL resolving issue. See mod_rewrite URL info required for details.

You can either use absolute URL paths or absolute URLs:

<form action="/something.php" method="post">
<form action="http://example.com/something.php" method="post">

Or you change the base URL (see BASE HTML element) so that every relative URL is resolved from that URL and not the current URL:

<base href="/">
<base href="http://example.com/">

The short and easy version of solving this is to absolute-path your URLs - /something.php in the form action, not just 'something.php'.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!