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

  • Home
  • SEARCH
  • 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 5977161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:19:51+00:00 2026-05-22T21:19:51+00:00

So trough the big hassle of this finding for the right script and yadayadayada

  • 0

So trough the big hassle of this finding for the right script and yadayadayada I now have a CNAME redirecting myawesomeblog.mysite.com to mysite.com/?blog=myawesomeblog and a .htaccess code like the following

RewriteEngine On

# Prevent people from going to to index.php directly and spoofing the
# subdomain value, since this may not be a desirable action
RewriteCond %{THE_REQUEST} ^[A-Z]+\index\.php.*(\?|&)blog=
RewriteRule ^.*$ http://%{HTTP_HOST}/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST}        !^www
RewriteCond %{HTTP_HOST}         ^([^\.]+)\.([^\.]+)\.([^\.]+)$
RewriteRule ^.*$ index.php?blog=%1

It all works, except that I need to get *.mysite.com/?get=something&get2=something-more working as well, I have no idea how to make it happen tho’

All help is appreciated.

  • 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-22T21:19:52+00:00Added an answer on May 22, 2026 at 9:19 pm

    You probably need an extra flag to your rules:

    RewriteRule ^.*$ http://%{HTTP_HOST}/ [R=301,L,QSA]
    
    RewriteRule ^.*$ index.php?blog=%1 [L,QSA]
    

    R as in redirect. L as in last. QSA as in query string append.

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

Sidebar

Related Questions

So hello everyone I have a big problem right now with a button that
I have this quite big CSV file (15 Gb) and I need to read
i want to loop trough all my delicious.com bookmarks and wrap a link arround
I have a Semaphore that runs trough a list of Job objects. Here is
I have a big mysql query which needs to trawl through 4 tables to
i have big decision tree with many Yes/No questions. i need implement some code
We have been going through a big memory leak analysis and have found one
I have a jquery cycle slideshow that slides through 3 big photos and is
in this posting http://www.badlogicgames.com/wordpress/?p=504 Mr. libgdx Mario writes: OpenGL from the ground up: an
I have a quite complex, even though not really big, array, with many levels

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.