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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:11:39+00:00 2026-05-27T03:11:39+00:00

In EE 2.2.2 having this in my htaccess file RewriteRule ^(.*)$ /index.php/view/$1 [L] Allowed

  • 0

In EE 2.2.2 having this in my htaccess file

RewriteRule ^(.*)$ /index.php/view/$1 [L] 

Allowed me to rewrite domain.com/index.php/view/phone to domain.com/phone.

In EE 2.3.1 this no longer works. The problem seems to be with system\codeigniter\system\core\URI.php and I see few things has changed with this file. If I replace URI.php with the 2.2.2 version then it works again. My question is what has changed and how do I get this to work again.

  • 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-05-27T03:11:40+00:00Added an answer on May 27, 2026 at 3:11 am

    Updated answer

    After some time with thoughts (and testing) I’ve come up with an alternate solution, that might fit your need with the updated EE.

    Assuming your rewrite rules are like the following:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
    

    Now, my suggestion is to let your view template group be the index template group.
    In your index template in the view template group, you could have the following:

    {exp:channel:entries channel="view_channel" require_entry="yes"}
    {if no_results}
    {embed="a_template_group/my_normal_frontpage"}
    {/if}
    <DOCTYPE html>
    <html>
        <head>
            <title>{title}</title>
        </head>
        <body>
            <h1>{title}</h1>
        </body>
    </html>
    
    {/exp:channel:entries}
    

    This allows you to, without adding other rewrite rules, have your visitors go to http://example.org/phone and the view/index template will try to find the entry with the entry ID labeled ‘phone’. If that entry cannot be found (the {if no_results} part) embed another template. In this case I would assume you’d like to show some sort of frontpage.

    This also allows you to, under the view template group, create ordinary templates like view/create_entry which will show up, when you go to http://example.org/create_entry

    This should work – and is easy customizable to fit your needs.

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

Sidebar

Related Questions

I'm using this htaccess file to rewrite links, RewriteEngine on RewriteRule ^([a-zA-Z]+)$ file.php?show=$1 But
I'm having trouble with redirecting urls using the .htaccess file. This is what my
I'm having trouble using .htaccess. This is the content of my .htaccess file RewriteEngine
Having no luck removing the index.php file from the url. For example I want
I am having an issue with using an .htaccess file to rewrite my urls
i'm having a little issue with modrewrite under php. this is inside my .htaccess
I'm having this .htaccess file: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase /d/IT2 Tryggheim/it
If this is my actual URL to a file: http://www.example.org/posts.php?post=example-post-name In my .htaccess file,
Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the
Having this code: using (BinaryWriter writer = new BinaryWriter(File.Open(ProjectPath, FileMode.Create))) { //save something here

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.