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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:15:31+00:00 2026-06-12T09:15:31+00:00

I got a phpbb3 CMS running and customized a lot about it. Now i’m

  • 0

I got a phpbb3 CMS running and customized a lot about it.
Now i’m trying to achieve that if somebody use the link http://xxx.domain.tld
it will redirect internal to http://domain.tld/forum.php?subdomain=xxx

The Problem i’ve got there exactly is that if you see now the content of http://domain.tld/forum.php?subdomain=xxx inside of it a css link to a other php file which lies in the same Folder as the called forum.php.

The best way were if only the subdomain root called it will internal redirect to the forum.php and any other request will handled normal.

with my many trys my best solution was this

RewriteCond %{HTTP_HOST} ^([a-zA-Z]+)\.domain\.tld$ [NC]  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteCond %{REQUEST_FILENAME} !^(.*\.(jpg|png|gif|css|js))$  
RewriteRule ^(.*)$ forum.php?subdomain=%1 [L]

but as you can guess the problem is with the dynamic css file, so I hope you can help me ^^

and besides: sorry for my bad english x|

  • 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-12T09:15:31+00:00Added an answer on June 12, 2026 at 9:15 am

    Can’t you just add an exception for the php script that generates the css?

    Like so:

    RewriteCond %{HTTP_HOST} ^([a-zA-Z]+)\.domain\.tld$ [NC]  
    RewriteCond %{REQUEST_FILENAME} !-d  
    RewriteCond %{REQUEST_FILENAME} !^(.*\.(jpg|png|gif|css|js))$  
    RewriteCond %{REQUEST_URI} !path_to_css_script\.php$  
    RewriteRule ^(.*)$ forum.php?subdomain=%1 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got that error when trying to push updated app to Heroku (probably the same
Got a cxmemo1 that I need to add its contents to database. Right now
Got this error message while trying to load view: The model item passed into
Got a seg fault from my memcpy that gdb can't give me anything else
got some problems. Built an applet that has to be used step-by-step. After each
Got a situation where we have a working production website that is moving to
got an Caused by: java.lang.ClassNotFoundException: com.vaadin.ui.CustomComponent when trying to run a vaadin-portlet in liferay
Got this error while trying to get the variables out of a class. Using
got a little problem im hoping someone can enlighten me on. Trying to serialise
Got a task to make a program that registers animals and the object is

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.