can you post exact link for WordPress 2.5.1?
i’ve found lots of solutions, but non of them works with WordPress 2.5.1 ??
except last, that doesn’t solve anything with url example.com/./foo/
Normally the categories would look like this:
https://www.clausheinrich.com/category/web-directory/
with the change it will become:
https://www.clausheinrich.com/web-directory/
Find the file wp-includes/classes.php and about halfway down you can change the settings.
To remove the category like above do this:
$this->category_structure = $this->front . ‘category/’;
change it into this:
$this->category_structure = $this->front;
Update:
In the WordPress 2.1 branch you will find the code in wp-includes/rewrite.php
Thanks to Caio Proiete for informing
WordPress Version 2.3.x branch:
Delete this:
$this->category_structure = $this->front . ‘category/’; else
WordPress Version 2.5.x branch:
I have not tried this personally, but reading from comments it is should be possible to now use the Base Category feature to disable the “category” directory.
Brad mentions in comment #27:
Adding the /. in Settings – Permalinks -Category Base field works fine in 2.5.
Where are ppl seeing the /. in the URL? (e.g. www .example.com/./foo/)
I’m having no problems with it.