| | |
mod_rewrite subdomains
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
It's worth doing a search of previous postings because most common questions have been asked and answered before. I got this link from a previous post:
http://corz.org/serv/tricks/htaccess2.php
If it doesn't answer your question, there are a number of previous posts that you can look at.
Chris
http://corz.org/serv/tricks/htaccess2.php
If it doesn't answer your question, there are a number of previous posts that you can look at.
Chris
•
•
Join Date: Jul 2008
Posts: 148
Reputation:
Solved Threads: 25
Google for Wildcard DNS
If you're question/problem is solved don't forget to mark the thread as Solved!
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.11 or 5.3.0
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.11 or 5.3.0
•
•
Join Date: May 2009
Posts: 9
Reputation:
Solved Threads: 1
I figured it out and for anyone who is reading this save the following as .htaccess in public_html
PHP Syntax (Toggle Plain Text)
Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?example\.com RewriteCond %{REQUEST_URI} !^/example\.com RewriteRule (.*) /example\.com/$1 [L]
Last edited by koolhq; May 21st, 2009 at 4:40 pm.
![]() |
Similar Threads
- Redirect with mod_rewrite for subdomains (Linux Servers and Apache)
- vBulletin mod_rewrite (PHP)
- Relative Paths and Subdomains (PHP)
- Apache mod_rewrite with Google Ads (Linux Servers and Apache)
- Alternative to using .htaccess for mod_rewrite (Linux Servers and Apache)
- mod_rewrite in asp .net using vb (ASP.NET)
- mod_rewrite (Linux Servers and Apache)
Other Threads in the PHP Forum
- Previous Thread: "Column count doesn't match value" error -Mysql
- Next Thread: Generate new password every 24 hours?
| Thread Tools | Search this Thread |
ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server session sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; xml youtube





