English 中文(简体)
mod_rewrite different Language part of url
原标题:mod_rewrite different languages part of url

这里是我目前的接触:

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f [NC,OR]
RewriteCond %{REQUEST_FILENAME} !-d [NC]

RewriteRule ^$ /launcher/index.html [L]

RewriteRule ^en/admin$ /main/index.php?lang=en&action=acp [L]
RewriteRule ^sp/admin$ /main/index.php?lang=sp&action=acp [L]

RewriteRule ^en/(.*)$ /main/$1?lang=en [L]
RewriteRule ^sp/(.*)$ /main/$1?lang=sp [L]

我有一个发射器屏幕(正在做罚款),我的站点PHP文档是主要/指数.php。 我用“GET”美元传递我指数上哪页的信息:指数.php?action=download&file=123。 有两个根基层次的Im将使用/en/ english,和/sp/ for spanish。 这些指数被转至指数.php,作为?lang=en或?lang=sp。

我有两个问题无法解决;

  • 我的规则有奇怪的不一致之处。 我试图做些什么,也许有更好的办法。 我非常赞赏有人能向我表明情况。 I m mo-rewrite

  • 当我用吗?variable=数值在URL的末尾添加更多的内容时,它发生在?lang=en或?lang=sp之后。 这意味着,第二个问题标志导致GET到冰川,而GET的变数则损失。 我需要一种办法,将2美元——GET与朗德_rewrite加在一起?

最佳回答
问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签