Take a peek over my .htaccess file, perhaps that’ll help to “enlighten”. 😀
HI chuyskywalker,
thx for your file, but I only see the normal wp folders in your htaccess (and I’m not so familiar with mode_rewrite). I’m able to get it work with …/archives/…, …./category/…, but I’m not able view all my post again in an real folder called “article” (wenn I use as a permalink /article/%postname%), if I change it to articles or whatever it works fine, but I want to get the links and the folder with the same name.
If I’m blind, please take my head and bounce it 10 times to the interessting line, to enlight me a little more. 🙂
Thx anyway for you help
greetings
Rene
but I’m not able view all my post again in an real folder called “article”
I am not sure I understand what you are saying or what you want. “Real” folder? There are no real folders; actually the folders like “archives” and “categories” are virtual folders created by WP. I also do not understand how can you put your posts in a “real” folder, since they are stored in the DB…
In the .htaccess file you can use only the parameters given there (I assume 🙂
Hi moshu,
i will explain it.
My links to an post looks like
/css/css_for_a_dummy/
Normally within WP you are able to call you categories with e.g.
/archives/category/css/
and in this virtual folder all the posts from the category CSS will get displayed:
What i want to have is a link looks like
/css/
where all the posts of this category get shown. So I copy the index.php to this folder and try to only display the css post with
…
$cat = ‘id of css’;
…
its not working I always get “no post matches…”
if I rename the folder e.g. “css1” it works perfect.
You know what I mean?
Thx for you help!
ahhhhh
I see what you want. Normally WP is set up so that the url
/archives/category_name
will pull up all the posts in the category. You are trying to create an actually folder, place an index file in there and then have that index file pull all the posts from the category that you specify.
What you want is an .htaccess solution that will allow a person to type:
/category_name
and get all the posts from that category.
However, as WP is currently set up that would break a whole lotta stuff. For example, what if you have a category called “feeds”
/feeds
Normally, that would return an RSS2.0 feed, but in your case, it would return a category. Quite simply, you would loose a whole lot of functionality.
A possible temp measure you might be able to live with is that you need not use the full url syntax:
/archives/category_name/post_name
You can actually use a shorter version:
/archives/post_name
and if you fiddle with the .htaccess file you can change the “archives” part to “articles” so it will look more like:
/articles/post_name
(Example: /articles/css-for-dummies
)
Hope that helps to clear things up.
Good morning chuyskywalker,
we getting closer together. 🙂
You are totally right, with the feeds problem. I dont want to harm the other directories.
You wrote:
I see what you want. Normally WP is set up so that the url
/archives/category_name
will pull up all the posts in the category. You are trying to create an actually folder, place an index file in there and then have that index file pull all the posts from the category that you specify.
What you want is an .htaccess solution that will allow a person to type:
/category_name
and get all the posts from that category.
And the problem ist if my categorylinks and the permalinks (more… eg. /article/year/month/date/%postname%) with the category “articles” inside the link are not viewable on a “real” “articles” folder.
It works perfect without the mode_rewrite but the mode_rewrite maybe “blocks” it any way.
My question should be (if I’m able to explain it :-] ) that I want that damn index.php displaying the post of the category “articles”
Would maybe a plugin helps?
Anonymous
I’ve tried this and all my pages still 404. I’ve also tried copying another person’s .htaccess. My server has rewrite capabilities. I did change the permissions to do this.
.htaccess uses:
RewriteRule ^article/php/? /wp/article/category/article/php/ [QSA]
RewriteRule ^article/? /wp/article/category/article/ [QSA]
RewriteRule ^reference/? /wp/article/category/reference/ [QSA]
permalink uses:
/article/%postname%/
I am determined to make the postname work! I am using 1.2.
Hi,
what helped me on my shared host account is to remove the last slash from the link of the rewrite base.
old:
RewriteBase /wp1.34/
new:
RewriteBase /wp1.34
Thats it. Got the same problem with 1.2, because I had not tried this.
Maybe it helps