最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

urls - Removefrom www.example.com

programmeradmin0浏览0评论
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

Whenever I type my domain, example: www.example there is a forward slash that automatically appears in Firefox. Example: www.example/

How can I remove this?

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

Whenever I type my domain, example: www.example there is a forward slash that automatically appears in Firefox. Example: www.example/

How can I remove this?

Share Improve this question edited Feb 2, 2021 at 12:27 MrWhite 3,8911 gold badge20 silver badges23 bronze badges asked Feb 2, 2021 at 10:26 user201299user201299 111 bronze badge 6
  • 2 Do you mean on your site's settings page or in your browser's address bar? I don't think the '/' matters though. Why do you want to remove it? – Rup Commented Feb 2, 2021 at 10:36
  • You can go to settings > permalinks and remove the trailing slash there, other than that you can edit the .htaccess. See this for more information – Buttered_Toast Commented Feb 2, 2021 at 10:55
  • 1 Note that example/ and example are the same URL, and Google Chrome will even auto-remove the / if you type that address in the address bar. This is unlikely to be a WP thing and is probably a browser thing – Tom J Nowell Commented Feb 2, 2021 at 11:19
  • @Buttered_Toast The OP is talking about the slash at the start of the URL-path, immediately after the hostname, not the trailing slash at the end of the URL-path, as discussed in that linked question. – MrWhite Commented Feb 2, 2021 at 11:22
  • 1 thanks everyone for your responses. i think @Tom J Nowell may be right. I tried using chrome and the slash disappeared. but in fire fox which is the default browser i use it's still there, even when i hover over the tab it says www.mydomain/ I guess I will just live with it. – user201299 Commented Feb 2, 2021 at 12:20
 |  Show 1 more comment

1 Answer 1

Reset to default 3

This isn't a WordPress thing, this is a browser/HTTP thing. Firefox may be showing the / as part of a setting, but example and example/ are the same URL.

This Q on webmasters goes into more detail as to why this is the case:

https://webmasters.stackexchange/questions/35643/is-trailing-slash-automagically-added-on-click-of-home-page-url-in-browser

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论