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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:47:15+00:00 2026-06-06T14:47:15+00:00

I have a web app, where I keep a subdomain for every client eg:

  • 0

I have a web app, where I keep a subdomain for every client eg: http://clientNo32.myApp.com
Due to some server hazzling I have to forward this stuff to my new server at http://123.456.78:1002/clientNo32/app/index.php

The folder “clientNo32” does NOT exist, it’s only a parameter I want to get from the URL.

How can I achieve this?

  • 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-06T14:47:16+00:00Added an answer on June 6, 2026 at 2:47 pm

    I think you’re trying to do something like this?

    RewriteEngine On
    
    # Don't know if you need this, exclude www hosts
    RewriteCond %{HTTP_HOST} !^www [NC]
    
    # Make sure we don't already have a "cId" in the query string
    RewriteCond %{QUERY_STRING} !cId=
    
    # match the subdomain
    RewriteCond %{HTTP_HOST} ^([^\.]+)\.myapp.com$ [NC]
    
    # add subdomain to URI as a query string
    RewriteRule ^(.*)$ /app/index.php?cId=%1 [L,QSA]
    

    This makes it so when you request anything starting with http://clientNo32.myApp.com/, it gets rewritten to /app/index.php?cId=clientNo32

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

Sidebar

Related Questions

I have a Firefox plugin that adds some optional features to my web app.
I've written a simple issue tracker for my web app. I have some comments
We have a SaaS web app and are looking to get some feedback from
I have a web app built against asp.net 2.0, but keep getting the following
I have a web app containing a silverlight application. How do I keep the
I have a web app that uses some jars written by me. My challenge
I have a web-app with a Java back-end that uses Tomcat jdbc-pool for database
I have a web app that runs fine in Visual web developer. But when
I have a web app built with Dojo 1.7.2, using RequireJS to load individual
I have another web app, that uses the liferay user database. But before a

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.