WordPress 与雅虎!主持...即将完成

发布于 2024-10-27 14:28:07 字数 1062 浏览 2 评论 0原文

编辑:

是的,所以这个问题确实无法解决。雅虎会阻止对 .htaccess 的访问,即使 WordPress 本身试图更改它。我不得不在默认主页上编写一个脚本,如果浏览器直接访问“www.abc.com”,则将浏览器重定向到“www.abc.com/index.php”。您总是必须处理地址栏中的“index.php”,但这比没有永久链接要好......

/编辑

雅虎!小型企业主机似乎是专门为让 WordPress 变得困难而设计的——但它是我客户的主机,我对此无能为力。我正在尝试将 WordPress 移至根目录,而且我已经非常接近完成了。

自从雅虎!以来,我一直在阅读有关如何使永久链接正常工作的内容。托管不允许您修改 htaccess 我几乎在 s*** 小溪。我使用的是简单的永久链接结构“/%postname%/”,一旦我移动到根目录,它就停止工作。我已将其更改为“/index.php/%postname%/”,如果您在页面名称之前手动输入index.php,或者登录管理区域并“查看页面”,您就可以查看页面。此外,正确的永久链接会显示在编辑器的所有页面上。

但是,WordPress 不允许您更改用作首页的静态页面的永久链接。

长话短说,如果我访问“www.abc.com/index.php”,菜单中的链接都可以正常工作。但是,如果我刚刚访问“www.abc.com”,链接不会从永久链接结构中获取“index.php”。我需要解决这个问题,所以如果有人知道如何:

  1. 更改静态首页的永久链接

  2. 如果我安装 PhpMyAdmin,请修复数据库中的某些内容< /p>

  3. 解决无法访问 .htaccess 的问题

  4. 在索引页上的某个位置放置一个小脚本以附加“将“index.php”添加到网址

  5. 任何其他建议

如果我这样做,它似乎会起作用没有使用静态首页,而是使用博客,但这不是一个选择。我尝试更改“标签库”设置,但没有成功,也尝试停用 Yahoo!自定义永久链接插件(并在失败后再次重新激活它......)。确实需要一些帮助!

EDIT:

Yeah, so this problem is really unsolvable. Yahoo prevents access to .htaccess, even from WordPress itself trying to change it. I had to settle for writing a script on the default homepage that redirects browsers to "www.abc.com/index.php" if they go straight to "www.abc.com". You always have to deal with "index.php" being in the address bar but it's better than not having permalinks...

/EDIT

Yahoo! Small Business hosting seems specifically engineered to make WordPress difficult-- but it's my client's host and there's not much I can do about it. I'm trying to move WordPress into the root directory, and I'm sooo close to having it done.

I've read and read and read about how to get the Permalinks to work right, and since Yahoo! hosting doesn't let you modify htaccess I am pretty much up s*** creek. I'm using the simple permalink structure of "/%postname%/", which once I moved to the root, stopped working. I have changed it to "/index.php/%postname%/", which allows you to see the pages if you manually type in index.php before the page name or if you are logged into the admin area and "View Page". Also, the correct permalink shows on all of the pages in the editor.

However, WordPress doesn't let you change the permalink of the static page you use as the front page.

Long story short, if I go to "www.abc.com/index.php", the links in the menu all work fine. However, if I just got to "www.abc.com", the links don't pick up the "index.php" from the permalink structure. I need to fix this, so if anyone knows how to either:

  1. Change the permalink of the static front page

  2. Fix something in the database if I install PhpMyAdmin

  3. Work around not having access to .htaccess

  4. Put a small script somewhere on the index page to append "index.php" to the url

  5. Any other suggestions

It seems it would work if I was NOT using a static front page but rather the blog, but this isn't an option. I've tried changing the "Tag base" setting to no avail, as well as deactivating the Yahoo! Custom Permalinks plugin (and reactivating it again after that failed...). Could really use some help!

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

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

发布评论

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

评论(3

原野 2024-11-03 14:28:07

请查看为 WordPress 提供自己的目录。我可以看到这如何解决你的问题。另请确保您已完成显而易见的操作,并在常规设置页面中更改 WordPress 地址 (URL) 站点地址 (URL) 的 url。也许静态主页应该在wordpress之外开发,然后您可以按照我提供的链接中提供的步骤进行操作。希望这能解决您的问题。

Check out Giving Wordpress its own directory. I can see how this could solve your problem. Also make sure that you have done the obvious, and change your url for WordPress address (URL) Site address (URL) inside the general settings page. Perhaps the static homepage should be developed outside of wordpress, and then you can follow the steps provided in the link I provided. Hope this solves your issue.

恬淡成诗 2024-11-03 14:28:07

雅虎不允许用户访问 htaccess 文件,这意味着您无法使用自定义永久链接所需的 mod_rewrite 规则。我听说它有效的唯一方法(我自己从未尝试过)是将 /index.php/ 添加到自定义结构的开头,这样:转到永久链接设置> >选择自定义结构。并将值设置为 /index.php/%postname%/ 或任何你想要的值,只要在它前面添加 /index.php/ 即可。

希望这有帮助。

Yahoo doesn't allow users access to the htaccess file which means that you can't the mod_rewrite rules needed for custom permlinks. The Only way around it that i've heard it works (never tried it myself) is to add /index.php/ to the beginning of your custom structure so: Go to Permalink Settings > Select Custom Structure. And set the value as /index.php/%postname%/ or what ever you want as long as you add /index.php/ before it.

Hope this helps.

傲性难收 2024-11-03 14:28:07

我对此主机也遇到了类似的问题(2018 年!在您提出问题 4 年后),我最终通过更改永久链接设置解决了这个问题。

Settings > Permalink Settings > Custom Structure: /index.php/%postname%/

我希望有一个更好的解决方案,但雅虎小型企业仍然不允许 .htaccess 文件 - 在与客户服务进行了几次令人沮丧的回合后,我最终承认失败并使用了此解决方案。

I had a similar problem with this host (in 2018! 4 years after your question) that I finally solved by changing the permalink settings.

Settings > Permalink Settings > Custom Structure: /index.php/%postname%/

I wish there was a better solution but Yahoo Small Business still doesn't allow .htaccess files - after several frustrating rounds with customer service, I finally admitted defeat and used this work around.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文