• I cannot for the life of me figure this out. On my website, when you click on the comments link, it adds ?p=19#comments (Allow for the entry numbers, of course…) to the URL, and I know this is supposed to happen, but the problem is it goes absolutely NO WHERE. I’ve found that if I move WP into it’s own directory (And change the URL in the admin panel) it works, but there was a point in time when I didn’t have to do this to get them to work. I’ve read up on it as much as I could for a couple weeks at random times, and I have yet to find anything to fix it..help, please? :[ ( https://deathbloom.net/jackie )

    P.S. If you suggest something to do with coding, PLEASE show me what you mean, I’m not good with it at all. ??

    P.P.S. As a side note I forgot to mention:
    I use PHP includes to call WP to my index page (It comes from wp.php in the base directory), this causes the problem I’m assuming. -.- How can I get around it?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Ah.

    Your permalinks don’t go anywhere. I noticed that you have a new layout. That is the problem. https://deathbloom.net/jackie/wp.php?p=17#respond works just fine.

    Examine the difference between your index.php and wp.php files. Look for calls to is_single().

    Better yet, just start with wp.php, save it with a different filename, and then modify it bit by bit until it matches your desired output. But DON’T get rid of the permalink/is_single stuff, because that’s the source of your current problem.

    Yeah, it is not just your comments – your category links don’t work properly, either. Need to adjust your index to more closely match the theme index file – assuming you wish to keep that theme.

    Thread Starter xlookitsme

    (@xlookitsme)

    The problem with comparing wp.php and index.php is that everything that’s on index.php, isn’t on wp.php. And vice-versa. I have my site XHTML 1.0 Transitional validated, and it doesn’t allow for duplicated tags, which means I took out the <html> through the <body> tags and </body> on in wp.php. So basically wp.php is just where the blog coding itself is held. ??

    OK I was having the same problem. Lets see if this helps. With my account I had an index.html redirecting me to index.php and that caused my comments to not work. I deleted index.html and index.php works all by itself and the comments now work. I really hope this helps you!

    I am having this same issue. If i manually insert index.php after the domain & before the ?p=1#comments I reach my desired page. I can’t seem to find the solution in this discussion (or many others). I am guessing it is a file I need to edit and fix a link path. I am using a new install of 1.5.1.3 and a new database.

    Is there a specific file to look in? The blog is at https://www.chrisking.org/index.php. The page won’t load without the index.php as well, which makes me think that the web server needs to use php as defaults. Could that be the problem for both things?
    Thanks,
    Chris

    My problem was in fact the server not using index.php as a default page. I go thte admin to change it and it now works fine! Sorry to clutter the space here ??
    Chris

    you can add this line in your .htaccess (before the #BEGIN WORDPRESS bit, if you use pretty permalinks)

    DirectoryIndex index.php index.html index.htm default.html default.html

    Hello everyone.
    I am having the same problem now, i have installed hundreds of wp installs put the last 2 i just cant figure out what is going one.
    I have turned off permalinks, and still everytime i click on a post on the index.php page it goes back to that page, or if i click on a category link it goes back to index.php , it shows the file it is suppost to be at in the browser screen but it still redirect to the index page…
    Not sure why this is.
    jamie

    Jamie,

    If you only tell us what you know,
    And you don’t provide a URL,
    And you don’t give us the details that mean nothing to you,

    Then

    We can only possibly know what you know.
    And clearly, that isn’t enough to solve your problem, or you would have solved it by now.

    I’m not trying to be snotty, just impart a useful bit of information. Please provide:

    1. A URL where we can go and see the problem.
    2. Details that may affect the problem, such as the permalink style that you’ve selected, or the .htaccess rules that WordPress has generated, or anything that you have done or not done differently than normal.

    Remember always the Second Law of Tech Support:

    If it changes, then something changed.

    In other words, if the behavior of X is different than the behavior of Y, then X is different from Y in some way.

    ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘comment links redirect to same page’ is closed to new replies.