htaccess 文件命名法在 IE 中打开弹出窗口时产生问题

发布于 2024-09-16 16:33:24 字数 1064 浏览 3 评论 0原文

我的 htaccess 文件命名法在 IE 中打开窗口时出现问题

已编辑

我必须打开一个不需要在弹出窗口中打开的颜色选择器,我

window.open('picker.html', null, "help=no,status=no,
scrollbars=no,resizable=no,toolbar=
no" + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);

的基本网址如下所示:

http://www.mydoamin.com/

并且 htaccess 文件重写了 http://www.mydomain.com/30/

但是当我想在 IE 中打开弹出窗口时,htaccess 不起作用,并给我 url 作为 http://www.mydomain.com/30/picker.html

因此我得到的消息是损坏的链接或未找到 没有名为“30”的文件夹,路径必须类似于 http://www.mydomain.com /picker.html

特定页面的重写规则如下:

重写规则 ^30/order-vinyl-banners.html order_form.php?id=30 [NC]

为什么会发生这种情况.. 请帮我追踪它..

My htaccess file nomenclature creating problem in opening a window in IE

EDITED

I have to open a colour picker which needs t be opened in popup, and I have

window.open('picker.html', null, "help=no,status=no,
scrollbars=no,resizable=no,toolbar=
no" + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);

my base url goes like this:

http://www.mydoamin.com/

and the htaccess file has rewritten the above url from http://www.mydomain.com/30/

but when i wish to open the popup in IE the htaccess doesnt work for it and gives me url as http://www.mydomain.com/30/picker.html

and hence i get msg as broken link or NOT FOUND
there is no such folder called "30" the path has to be like http://www.mydomain.com/picker.html

The rewrite rule of the particular page goes like this:

RewriteRule
^30/order-vinyl-banners.html
order_form.php?id=30 [NC]

why is it happening..
please help me to track it..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽袖吟 2024-09-23 16:33:25

如果你想显示http://www.example.com/picker.html,你需要告诉open()函数。现在,您告诉它“打开相对于我当前所在位置的 URL picker.html”,但您希望“打开相对于根目录的 picker.html” ”。试试这个:

window.open('/picker.html', null,
        "help=no,status=no,scrollbars=no,resizable=no,toolbar=no"
        + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);

If you want to show http://www.example.com/picker.html, you need to tell the open() function so. Right now you're telling it "Open the URL picker.html relative to where I'm currently at", but you want "Open picker.html relative to the root". Try this instead:

window.open('/picker.html', null,
        "help=no,status=no,scrollbars=no,resizable=no,toolbar=no"
        + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文