| | |
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 back basic beginner binary broken cakephp checkbox class cms code computing cron curl database date delete display dynamic echo email error external file files filter folder form forms function functions gc_maxlifetime google host href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail memmory memory menu mlm multiple mysql navigation oop parsing paypal pdf php problem query question radio random recursion regex remote script search server sessions sms snippet soap source space sql syntax system table thesishelp trouble tutorial update upload url validation validator variable video web xml youtube





