Title: index.php not working sometimes
Last modified: August 19, 2016

---

# index.php not working sometimes

 *  [negs](https://wordpress.org/support/users/negs/)
 * (@negs)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/indexphp-not-working-sometimes/)
 * 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)

 *  [keighl](https://wordpress.org/support/users/keighl/)
 * (@keighl)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/indexphp-not-working-sometimes/#post-1301218)
 * 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](https://wordpress.org/support/users/negs/)
 * (@negs)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/indexphp-not-working-sometimes/#post-1301318)
 * 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](https://wordpress.org/support/users/negs/)
 * (@negs)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/indexphp-not-working-sometimes/#post-1301326)
 * 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](https://wordpress.org/support/users/negs/)
 * (@negs)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/indexphp-not-working-sometimes/#post-1301330)
 * 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.

## Tags

 * [Blank](https://wordpress.org/support/topic-tag/blank/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [slash](https://wordpress.org/support/topic-tag/slash/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [negs](https://wordpress.org/support/users/negs/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/indexphp-not-working-sometimes/#post-1301330)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
