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 8316321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:20:10+00:00 2026-06-08T21:20:10+00:00

A client has an expressionengine site and wants the ‘index.php’ removed. Doing this alone

  • 0

A client has an expressionengine site and wants the ‘index.php’ removed. Doing this alone will put a dent in his sites SEO ranking since it will change all URLs. So, we want to retain link equity and social network share counts by adding a 301 to all pages.

I know how to remove the index.php and I know how to redirect (I think), but when I use them both, the server throws a redirect loop. My logic is warped. What am I missing here?

Here is what I’m working with:

# Redirect attempt
Redirect 301 /index.php/feature/article/ http://domain.com/feature/article/

# EE index.php rewrite
RewriteCond $1 !^(index\.php|js|path\.php|press_releases|rear|robots\.txt|text\.html|themes) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L] 
  • 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-08T21:20:11+00:00Added an answer on June 8, 2026 at 9:20 pm

    You only want to redirect if the actual request is for an /index.php/ URL. Change your Redirect directive to this:

    # Redirect attempt
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
    RewriteRule ^/?index.php/feature/article/(.*)$ http://domain.com/feature/article/$1 [R=301,L]
    

    This condition matches against the actual request that the server got and not the URI (which can get rewritten by the second rule).

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

Sidebar

Related Questions

My client has a drupal + ubercart site. now he wants to setup a
A client has me updating his static site with a few videos. He wants
My client has recently taken ownership of an existing web site, with final deliverable
A client has asked me to make their YouTube channel look similar this one:
My client has PHP running on an IIS server, I know these vti_conf files
My client has requested to enable auto-hyphenation on this page: http://carlosdinizart.com/biography/ , and I
My client has come up with a strange requirement. He wants the iOS application
my client has printed links to the site in capital letters. I have a
A potential client has come to me asking for a an app which will
My client has a Drupal 6 site. They are now adding another domain to

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.