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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:15:07+00:00 2026-05-16T08:15:07+00:00

I am so about to kick mod_rewrite to the curb. Talk about doesn’t play

  • 0

I am so about to kick mod_rewrite to the curb. Talk about “doesn’t play well with others.” Are there any witchdoctors about that can help me with this?

I have wildcard dns set up to identify users. I would like to go from:

http://username.domain.com/foo/bar

to:

https://www.domain.com/qux/waldo/username/foo/bar

Is this possible?

I’m developing with codeigniter and it has it’s own mod_rewrite directives in .htaccess already, to strip out the index.php.

Here’s what I’ve got:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} ^(www\.)?[^.]+\.idseal\.local.*$
RewriteRule (.*) /site/assign/$1

#Removes access to the system folder by users.
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]
</IfModule>
  • 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-16T08:15:08+00:00Added an answer on May 16, 2026 at 8:15 am

    First line verify if we are on the main domain or not, second line will match if there is a www or not, if there is a www it will be held on %1 thus making no changes if there inst, the data will be into %2 and will rewrite just fine.

    I am not 100% sure this will work out for your needs but give it a try and report it back and i will try to assist you with what i can.

    RewriteEngine on
    
    RewriteCond %{http_host} !^www.domain.com [NC]
    RewriteCond %{http_host} ^(www.)?([^.]+).domain.com [NC]
    RewriteRule (.*) https://www.domain.com/qux/waldo/%2/$1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use Ajax to kick off a PHP script that can take a few
Is there any way to kick off OptionParser several times in one Ruby program,
Is there any way to change something about a table cell on the iPhone
Here's an interesting article that I found on the web. It talks about how
I have a Google App Engine application that performs about 30-50 calls to a
I'm writing a webapp that basically allows users to kick off shell scripts with
I've never used a MySQL API before. I read about the oursql API that
This is about as beginner as a question gets, but I can't find anything
I am about to kick off an android project and currently looking at some
This is a goofy question, so sorry about that. I'm creating html elements dynamically

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.