index.php not working sometimes (5 posts)

  1. negs
    Posted 6 years ago #

    I made some changes to my site last night - I removed the trailing slash from my permalink. I know that is bad for SEO but I wanted to pass a variable through the URL and I thought the slash had to be gone in order to do that.

    So, that stuff is working great, and the pages that pass a variable are working fine.

    The problem is that my plain on blog pages - the ones that use index.php as their template and DO NOT pass a variable are completely blank. They don't load anything at all.

    But I was testing. I took out all code from index.php and replaced it with simple text and the page is still completely blank. So it isn't the variable per se, but maybe something to do with the .htaccess file that I changed when I changed my permalink structure?

    Does anyone know why this would be happening and how I might figure this out?

  2. keighl
    Posted 6 years ago #

    I would first, put your .htaccess file back to how it was. See if the problem persists; if so, you'll probably want to find another way to pass a variable.

  3. negs
    Posted 6 years ago #

    You know what is strange? I generated my .htacess based on what the permalinks settings spit out, right? So, the permalink says the same thing regardless of if I have a trailing slash or not:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /corporate/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /corporate/index.php [L]

    How does it know not to use the trailing slash?

  4. negs
    Posted 6 years ago #

    You know, I think I mislead you on the problem.

    What it is is that none of the pages that use index.php as the template are working at all, variable or none.

    Putting back the .htaccess doesn't help. Putting back the trailing slash doesn't help.

    I am very concerned about this. What could be special about pages using index.php that makes the entire page not load?

  5. negs
    Posted 6 years ago #

    Ok, it is a php error of some kind. Thanks for your response, keighl.

Topic Closed

This topic has been closed to new replies.

About this Topic