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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:54:01+00:00 2026-06-15T13:54:01+00:00

My htaccess right now: # Use PHP 5.3 AddType application/x-httpd-php53 .php RewriteEngine On RewriteBase

  • 0

My htaccess right now:

# Use PHP 5.3
AddType application/x-httpd-php53 .php


RewriteEngine On
RewriteBase /

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php

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

# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php

I need to do a rule, that if somebody type http://www.mypage.com/blog/blablatitle

it redirects him to http://mypage.com/blog/blablatitle

and the same for the frontpage and all pages.

I am using CodeIgniter, but I think this is not so important when dealing with htaccess.

This suggested solution is not working well in CodeIgniter:

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Because it adds index.php in the address e.g.: when I type:

http://www.mypage.com/blog/blablatitle

it redirects me to:

http://mypage.com/index.php?/blog/blablatitle

And I need:

http://mypage.com/blog/blablatitle

Without this rule it is ok (without index,php) e.g.: http://mypage.com/blog/blablatitle

So, any advice how to improve this redirect rule som index.php doesn’t appear in the redirected link?

  • 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-15T13:54:02+00:00Added an answer on June 15, 2026 at 1:54 pm

    SOLVED! 😉 You need to put it right after

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

Sidebar

Related Questions

My htaccess: RewriteEngine On RewriteRule ^(.*)/(.*)$ /index.php?cat=$1&page=$2 [L] Now my css is located at:
I have a .htaccess file which right now looks like this: Options +FollowSymLinks RewriteEngine
Right now im using .htaccess to hide .htm extentions: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f
Here's the code I have in my .htaccess file right now: RewriteEngine on RewriteCond
So right now I have this in my .htaccess page: RewriteEngine On RewriteCond $1
Right now, I am using a custom PHP solution to force WWW to be
I'm building a small system, which has nice htaccess rewritten urls. Now I'm wondering
I use .htaccess Mod Rewrite to send the URL to index.php, which then parses
RewriteEngine On RewriteBase / RewriteRule ^sample-([a-z][a-z]).php /state.php?m=$1 RewriteRule ^sample-([a-z^-]+).php /city.php?m=$1 I have two regular
I'm looking for the right .htaccess rule to make a Facebook.com/user URL like What

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.