1

I have just finished our website for our company while using my frist time .htaccess file to rewrite URLS. Everything works fine when it put the site online (Using a updated firefox version).

Now in our stores i had to install Firefox 3.5.17 becaus the internal system of our supplier only works in that version (strange enough but it is like it is..)

When testing our website on those computers it seems that my RewriteRules are not working, i even think that version of FireFox ignores the file..

So i have install a updated version of Firefox and that old version on my own computer and i have the same result.

I have use <base href="/">

And the content of my htaccessfile:

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?p=$1 [NC,L]
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ index.php?p=$1&cat=$2 [NC,L]

The result should be: website.com/../.. when i start to click on more links it becomes website/../../../.. and so on..

What am i doing wrong here? And how can i get this stuff to work.

UPDATE (SOLVED)

I have change my base URL to the full domain. Like in described in the post below. Thank you very much for your answer.

4

1 回答 1

0

这不是您的 htaccess 或您的规则。Firefox 不能尊重 htaccess 文件中的内容,这完全是服务器端的事情。Apache 决定它是否应该尊重文件的内容。

这是因为该版本的 Firefox 不支持没有<base>FQDN 的标签。您需要做的是尝试包括主机名:

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

或者将所有链接更改为绝对 URL,而不是使用以下链接:

<a href=".../...">next link</a>

它必须是:

<a href="/.../...">next link</a>
于 2013-11-08T16:02:55.713 回答