Make WordPress Core

Opened 19 years ago

Closed 17 years ago

Last modified 11 months ago

#2389 closed defect (bug) (invalid)

Allow trailing slash in WordPress address (URI)

Reported by: tosiabunio's profile 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)

#1 @davidhouse
19 years ago

Can't you set another Alias without a slash?

#2 @tosiabunio
19 years ago

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

#3 @skeltoac
19 years ago

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

#4 @markjaquith
19 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.

#5 @JeremyVisser
17 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

#6 @JeremyVisser
17 years ago

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