• 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!

Viewing 15 replies - 1 through 15 (of 16 total)
  • It may help if you add DirectoryIndex index.php to your .htaccess file so that it know that https://www.yoursite.tld/ and https://www.yoursite.tld/index.php are the same.

    Thread Starter grendelquinn

    (@grendelquinn)

    Thanks, but no luck. I’ve tried including this line before without success, and tried again just in case … I’ve just now added permalinks in WP to generate another .htaccess file and added it in again before eliminating the permalinks from WP. But again, both with and without the permalinks, still doesn’t work.

    I’ve checked to be certain I had no old default.htm/l or index.htm/l or home.htm/l in the root that might be getting in the way of index.php. Can you think of anything else I might have missed?

    I have exactly the same problem. grendelquinn – is your .htaccess file being regenerated by WP when you modify the permalink structure?

    Thread Starter grendelquinn

    (@grendelquinn)

    Hi graybo, yes – when I add or modify permalinks my .htaccess file is being regenerated, and the new structure appears when I click on links, but as always, defaults to the main index.php page. This happens even if I move all WP files into a subdirectory – the links all return back to the index.php file in whatever subfolder I’ve placed it.

    Placing ‘DirectoryIndex index.php’ in the htaccess file seems as though it should, but doesn’t help.

    Please repost if you find a solution!

    Sorry, no joy yet.

    Should have added that, at the moment, my .htaccess file is not being regenerated. I suspect a mod_rewrite issue.

    any update on this? was the problem resolve for category and links?

    Looks like this is a common problem with 1.5 version. How do the others fix the problem?

    Does this product really works?

    Moderator James Huff

    (@macmanx)

    I think I’m having a similar problem. I originally was missing many of the titles for posts that I imported, but I just ran a query on my database to create titles for all the posts that had them missing.

    I then updated the permalink structure, thinking it would take the new data and create links, but no such luck.

    I now have titles for all the posts, but clicking on them just gives me the message that “no posts can be found”. The link is not generating a post-name slug at all for any posts that have newly generated titles.

    Heh. I hope I didn’t break things too much in my effort to fix them. ??

    I don’t think post slugs are regenerated once they’ve been generated once. Changing a title doesn’t recreate the slug.

    So do I need to reassociate the entire database perhaps?

    I think I got it figured out. Just had to update the database more.

    Thread Starter grendelquinn

    (@grendelquinn)

    After checking a few times with my host (Network solutions) to be certain the mod-rewrite module was enabled, finally got a tech support person who gave it to me straight: not enabled, and won’t be. They “don’t have anyone running weblogs on their server” and can’t change server-side settings for one person.

    Easy as pie to set it up in moments using a new host recommended by WP (bluehost)!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Can’t get links to be valid with or without permalinks’ is closed to new replies.