We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

remove index.php partially works...

How Do I?

andrew001's avatar
andrew001
136 posts
8 years ago
andrew001's avatar andrew001

what would cause this to happen.

I am running EE 2.11.3 and I have a typical, simple nav structure.

my htaccess code looks like:

<IfModule mod_rewrite.c>
DirectoryIndex index.php

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt)

RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

my nav structure is:

<a href="https://expressionengine.com/">Home</a></li>
<a href="https://expressionengine.com/store">Shop</a></li>
<a href="https://expressionengine.com/partners">Partners</a></li>
<a href="https://expressionengine.com/contact">Contact</a></li>

The only page where the index.php is removed is on the Partner page. It shows up everywhere else.

I’ve tried the code in the docs, but when I use it, I get a message something like “no input file” or something.

Any idea why index would be removed from only that link, and not the others?

       
Neil Evans's avatar
Neil Evans
1,374 posts
8 years ago
Neil Evans's avatar Neil Evans

From what you have said, nothing is wrong there. I would suggest possible a clash of “real folder” names, urls in the CP, etc.

It can also be that the web browser has cached bad redirects in the past and is not refreshing them (this is the bane of my existance). So try clearing cache, or with another browser too.

N

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.