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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:54:10+00:00 2026-05-28T01:54:10+00:00

This is my htaccess code: RewriteEngine On RewriteBase /visio # Turn on the rewriting

  • 0

This is my htaccess code:

RewriteEngine On 

RewriteBase /visio

# Turn on the rewriting engine 

# RewriteRule [region]?.html$ index.php/login/getProvinces [L]
# RewriteRule post_([0-9]+).html$ index.php?admin/index/url=$1

 RewriteRule ^([^.]+)$ index.php/admin/index/$1

When iam try to load this url :

http://myserver.net/visio/test

I got the 404 not found error.In this url visio is the directory of my site in the server.When iam loading this url i want to go to the admin controller’s index().

How can i do this?
If there is any mistake in my code?

This is mmy index() code:

function index(){
if(isset($_GET['url'])){
$newkey = $_GET['url'];
$data['result']  = $newkey; 
$this->load->view('index',$data);
}else{
redirect('admin/index_login');
}

}

I want to get the url value in index() also.

But when iam changing the url like this:

http://myserver.net/visio/?test

Then it will goes to the index().So what is the problem in code?

  • 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-28T01:54:11+00:00Added an answer on May 28, 2026 at 1:54 am

    ^([^.]+)$ is a regular expression that matches “everything that is not any character”. In other words, it will only match “nothing, once or more” (the dot symbol). If you meant to match actual dots, add a backslash in front of it.

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

Sidebar

Related Questions

I have this htaccess code: RewriteEngine on RewriteBase /xm/ RewriteCond %{REQUEST_URI} !^/index.php$ RewriteRule ^([a-z0-9]*)\.php$
I have the following code in my .htaccess: RewriteEngine On RewriteBase / RewriteRule ^index\.php$
I have this code in my .htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule
This is my current .htaccess Options +FollowSymLinks DirectoryIndex index.php RewriteEngine On RewriteBase /product/ RewriteCond
My .htaccess file has the following code: RewriteEngine on RewriteRule ^/?(.*)$ index.php?domain=$1 [L] I'm
I have this .htaccess code that works perfectly: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$
I want to know, with this code in .htaccess RewriteEngine On RewriteBase / RewriteCond
My htaccess have this code # # Apache/PHP settings: # Options -Indexes Options +FollowSymLinks
I have this .htaccess that I've been using to rewrite URLs like these: www.example.com/index.php?page=brand
We all know that wordpress have simple .htaccess code like below RewriteEngine on RewriteBase

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.