如何用1参数重写url

时间:2017-05-02 10:01:37

标签: .htaccess

如何重写此链接?

Handler handler = new Handler(context.getMainLooper());
handler.post<Your runnable>

http://www.example.com/websitedevelopment.php?lan=en

http://www.example.com/websitedevelopment/en

http://www.example.com/index.php?lan=en

感谢..

1 个答案:

答案 0 :(得分:1)

尝试以下,

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^websitedevelopment/en$ websitedevelopment.php?lan=en [L]
RewriteRule ^en$ index.php?lan=en [L]