#2389 closed defect (bug) (invalid)
Allow trailing slash in WordPress address (URI)
Reported by: |
|
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:
not:
Unfortunately I can't set this address to its proper value.
Change History (6)
#2
@
19 years ago
Good suggestion. But is there a good reason to strip the trailing slashes in those two addresses?
#3
@
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
@
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.
Can't you set another Alias without a slash?