WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#2389 closed defect (bug) (invalid)

Allow trailing slash in WordPress address (URI)

Reported by: tosiabunio Owned by:
Milestone: Priority: low
Severity: normal Version: 2.0
Component: Administration Keywords:
Focuses: Cc:

Description

In Administration/General Options there are two URI fields:

  • WordPress address (URI):
  • Blog address (URI):

It's not possible to enter any address which ends with trailing slash there, but somethimes is necessary (Apache aliases defined with trailing slash). For example my local blog address is:

http://localhost/blog/

not:

http://localhost/blog

Unfortunately I can't set this address to its proper value.

Change History (6)

comment:1 davidhouse8 years ago

Can't you set another Alias without a slash?

comment:2 tosiabunio8 years ago

Good suggestion. But is there a good reason to strip the trailing slashes in those two addresses?

comment:3 skeltoac8 years ago

Yes, it normalizes the use of these values throughout the code and plugins. There may be other reasons more important than that.

comment:4 markjaquith8 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

There shouldn't be any cases where links point to the version sans trailing slash. That is, links to the front page should add the trailing slash. <?php bloginfo('home') ; ?>/

If you have found instances where this is not the case, open a new ticket pointing them out. I made a patch several months ago that fixed many of these cases, but I may have missed some.

comment:5 JeremyVisser6 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:6 JeremyVisser6 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.