• 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 16 replies (of 16 total)
  • FYI – Network Solutions does have mod_rewrite enabled. The issue where going to certain pages without index.php in the link has been resolved.

    Permalinks are still presenting an issue in that the .htaccess file needs to be modified for Permalinks to work properly. Network Solutions is still investigating why the edit needs to occur but for those looking for a fix:

    In the .htaccess file, replace the first “^” on each RewriteRule line with a “/”.

    For example if you had:
    RewriteRule ^categorias/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^categorias/(.+)/?$ /index.php?category_name=$1 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]

    Replace with:
    RewriteRule /categorias/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule /categorias/(.+)/?$ /index.php?category_name=$1 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]

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