Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8383373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:08:55+00:00 2026-06-09T17:08:55+00:00

I set up ExpressionEngine 2.4 with clean urls per the User Guide instructions .

  • 0

I set up ExpressionEngine 2.4 with clean urls per the User Guide instructions. They work great. But when I use path single variables from, say the channel entries tag, I still get “index.php” in the path. For example:

{exp:channel:entries channel="news"}
  ..
  <a href="{comment_url_title_auto_path}">Test</a>
{/exp:channel:entries}

Renders to:

<a href="http://eetest/index.php/mothra-is-attacking">Test</a>

I currently have a workaround consisting of two parts:

First, I scrub the “index.php” from the url using the Find and Replace Plus plugin:

{exp:channel:entries channel="news" limit="1"} 
    <a href="{exp:replace_plus find="index.php/"}
             {comment_url_title_auto_path}
           {/exp:replace_plus}">Test</a>
{/exp:channel:entries}

Which gives me the working clean url:

<a href="http://eetest/mothra-is-attacking">Test</a>

Second, in case I ever miss a url in the templates, I make sure that any url that has “index.php” in it is redirected to ones that don’t have one. In my .htaccess I use this clause:

# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC]
RewriteCond %{THE_REQUEST} ^GET
RewriteRule ^index\.php(.+) $1 [R=301,L] 

So while this setup works it’s cluttered (makes me sprinkle find/replace on my links in my templates) and a bit inefficient (forces redirects in some cases), and it’s not completely SEO friendly (for those urls that render with index.php).

My question is, is there some setting I’m missing to prevent index.php from showing up in some of these paths in the first place?

Here are some relevant settings in my config.php:

$config['index_page'] = ''; //per the user docs on removing index.php
$config['uri_protocol'] = 'AUTO'; //didn't have luck with the other values
$config['base_url'] = '';
$config['url_suffix'] = '';
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:08:56+00:00Added an answer on June 9, 2026 at 5:08 pm

    Found it.

    I had to go to Admin->Channel Administration->Channels and click on “Edit Preferences” for each of my channels.

    There, I removed the “index.php” from the “Channel URL” field in the “Path Settings” section.

    After hitting update and refreshing my front end page. All the index.php in the paths shown above were gone. Workarounds no longer needed!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We use the ExpressionEngine CMS (php) to create websites. For each site, we set
set phoneNumber 1234567890 this number single digit, i want divide this number into 123
ExpressionEngine version is 1.6.8 and NOT upgradeable. I would like to set a session
How do I set an error/success message in the ExpressionEngine admin panel from a
//Set default values $('#name').val('First Last'); $('#email').val('you@email.com'); $('#subject').val('Subject'); $('#message').val('Message'); //Change style when user types $('#name,#email,#subject,#message').keypress(function()
set-itemproperty -path HKCU:Control Panel\Desktop -name WallPaper -value Zapotec.bmp I found this code online for
I set up a website to use SqlMembershipProvider as written on this page .
I set a passphrase when creating a new SSH key on my laptop. But,
set up my machine at work (WXP 32bit) and MercurialEclipse in Eclipse Helios from
When using categories in ExpressionEngine, a Category URL Indicator trigger word can be set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.