• Trying to figure out why a website I’m working on goes back to the home page even if the link says that it went to the right page. I’ve tried deleting the .htaccess and re-created a new one. Still didn’t work. Any help or advice helps a lot. Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Try going to Settings -> Permalinks and hitting “Save Changes”. Did that fix it?

    Thread Starter whipworks

    (@whipworks)

    No it did not. That’s what I did when I meant deleting the .htaccess and recreating it. At first I tried choosing a different setting on Permalinks, and that didn’t work. Set it back to the original setting because some said that would recreate the .htaccess, but still didn’t work. So I’m out of options.

    Is your server running Nginx by chance? I’m not really sure, I’d have to see the site in question.

    Thread Starter whipworks

    (@whipworks)

    I don’t think so. Website’s charlinda.com.

    Either your template is pooched or your .htaccess file is messed up. Can you post your .htaccess file?

    Thread Starter whipworks

    (@whipworks)

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    That’s good, just wanted to ensure that it wasn’t empty. The only time this has ever happened to me, going through Settings -> Permalinks fixed it. Soo…. let’s eliminate the obvious issues:

    1) Go to Dashboard -> Updates and hit “Reinstall Now”. Have it ensure that all of your files are unmodified from the core version.

    2) Switch the theme to one of the default themes, like Twenty Thirteen.

    Otherwise we’ll have to start adding debug code into your template files to see exactly what’s happening under the hood.

    Thread Starter whipworks

    (@whipworks)

    Well that broke the site. I’m currently using index.html for now, just to make the site appear. But index.php doesn’t seem to be resolving.

    Thread Starter whipworks

    (@whipworks)

    So doing some poking around.

    index.html seem to have the codes for the home page, but doesn’t go to the links. So I’m thinking those pages is missing for some reason.

    index.php doesn’t go anywhere but the WP account. So I tried changing the index.hmtl to index.php, and it goes back to the same problem. Home page is up, but all the links goes back to the home page even if the link says that that’s the page.

    Thread Starter whipworks

    (@whipworks)

    Any help left out there??? ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Links go back to home page’ is closed to new replies.