Apache 1.3 and /?tegory%/%postname%/ as permalink
-
Hi. I’m trying to set my permalink structure to include the category name and postname. That is, I create a custom structure for permalinks in the Options>Permalinks panel as:
/%category%/%postname%/
I can display all posts in a category as https://www.example.com/category/website/ but when I try to access an individual post, the generated permalink does not include the %category% field. That is, the generated permalink is https://www.example.com//my-first-post/ for a post named “My First Post” in the “Website” category.
[Note: WordPress does successfully generate permalinks when I set my structure to the default, date and name based, or numeric structures. I also tried setting the permalink structure to /archives/%category%/%postname%/ and the %category% field was dropped as well in that case. And, I’ve tried setting the custom prefix for your category URIs to ‘/taxonomy’.]
[Note: I am running on Apache/1.3.27 and I understand that some have experienced problems using %category% in the permalink structure with Apache < 2.0, however https://www.ads-software.com/support/topic/41937 says it was not a problem. If this is my problem, is there a work around? I tried the Alternative Rewrite Rules workaround at https://boren.nu/archives/2004/10/08/alternative-rewrite-rules/ and experienced the same results. I am trying to make sense of the many postings.]
I am using a non-hierarchical set of categories and each of my posts are only set to a single category.
My .htaccess file was indeed set by WordPress:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
My configuration from phpinfo() is as follows:
WordPress 2.0.4
Apache Version Apache/1.3.27
Apache Release 10327100
Apache API Version 19990320Loaded Modules mod_webapp, mod_perl, mod_throttle, mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_unique_id, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_digest, mod_auth_dbm, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_config, mod_define, mod_env, mod_vhost_alias, http_core
X-Powered-By PHP/4.2.2
_SERVER[“SERVER_SOFTWARE”] Apache/1.3.27 (Unix) mod_perl/1.26 mod_throttle/3.1.2 PHP/4.2.2 FrontPage/4.0.4.3 mod_ssl/2.8.11 OpenSSL/0.9.6h
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1MACHTYPE i386-redhat-linux-gnu
Any pointers would be appreciated.
Thanks,
Mark – [email protected]
- The topic ‘Apache 1.3 and /?tegory%/%postname%/ as permalink’ is closed to new replies.