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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter negs

    (@negs)

    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]
    </IfModule>

    How does it know not to use the trailing slash?

    Thread Starter negs

    (@negs)

    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?

    Thread Starter negs

    (@negs)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘index.php not working sometimes’ is closed to new replies.