If you mean the “category base’ where WP inserts ‘category’ by default or whatever you defined in the permalinks options page – the answer is NO.
How about changing the category base to something else? I’m doing a bit of SEO and would like to put something a bit more descriptive and relevant in the URL.
Can this be done?
Ok just found what I needed, it’s a simple setting on the options/permalinks admin page. And I was expecting it to be complicated…
One thing though. If I try to directly access the base category URL http://mydomain.com/categories/ I get a wp 404 page. Is there any way of redirecting this request to something more useful, like an ‘Show All’ category?
excellant question,this is something i would like to fix on my blogs as well. No one wants a 404!
i wouldn’t know how, but my thought was to somehow use .htaccess to redirect anyone going to this URL, to your homepage instead… so http://www.example.com/categories/ redirects to example.com. How?
Second idea, what if you just put an HTML or PHP file in that location? would that mess up WP?
I’m looking to do a similar thing in which a person accessing the site domain.com/category would be taken to that category’s page. As it stands the only way that is done is through domain.com/index.php?cat=ID where ID is the category ID.
Thanks all.
Thread Starter
smm
(@smm)
Quote from: moshu
If you mean the “category base’ where WP inserts ‘category’ by default or whatever you defined in the permalinks options page – the answer is NO.
That´s not true. I just typed . in the field, and now it´s working with out a prefix. Take a look at zimmik.dk, if you want to see it in action…
Yes, it’s true! typing in a period .
will make the /category/ go away.
However, when going to the URL with that new location, I get a 404…
I also experimented with using ../ for a while, but it only worked in FF from what I remember