Can’t get links to be valid with or without permalinks
-
By default, my comment, pages, archives and category links are redirecting to index.php because the links aren’t valid (no matter what theme I use). If I manually add “index.php” into those links the link works perfectly (eg: ‘https://grendelsweb.com/?m=200504’ is the non-working default, if I change this to ‘https://grendelsweb.com/index.php?m=200504’, it works). Can anyone advise on how I can make this the case across the board (precede all arguments such as ‘?p=’, ‘?m=’ or ‘?cat=’ etc with index.php)?
One exception: Comments will work if I change the permalink structure to ‘/index.php?p=%post_id%’ (although I can’t find any other permalink structure that works). But this creates a structure for category and archives that doesn’t work.
I’m newly on WP1.5, on a hosted Unix server, have reinstalled a few times to start from scratch, have tried various permalink combinations, tried both generating a new .htaccess via WP (successfully), and manually adding via FTP (and making the files writable). I’ve taken a look at the new rules generated in the file (the file writes whatever I place in the permalinks area). I’ve edited the wp-includes/vars.php file as described and made sure that the following line is OK in index.php: ‘<?php comments_template(); // Get wp-comments.php template ?>’.
Apologies if I’m rehashing something already explained repeatedly – I think I’ve tried all of the solutions in the Codex and those I’ve found in this section that seem to work for everyone else, although I may be missing something very basic. I’ve removed all permalinks and the .htaccess file so you can see it as is. Thank you so much for any help – I’m stumped!
- The topic ‘Can’t get links to be valid with or without permalinks’ is closed to new replies.