View Single Post
  #1 (permalink)  
Old 11-02-09, 04:06 PM
whaffenden whaffenden is offline
Newbie Coder
 
Join Date: Nov 2009
Location: England
Posts: 14
Thanks: 1
Thanked 1 Time in 1 Post
Mod Rewrite Help

Hi Everyone,

I'm running a website and am using simple URL rewriting to achieve search engine optimised URLs. I need to split a section of the website into a subdomain. For example i wish to split example.com/example into example.example.com. I want to keep the code the same and just change the URL if possible. I've tried the following but just get a server error.

Code:
RewriteCond %{HTTP_HOST} ^example
RewriteRule (.*) index.php/example [NC,L]
Does anyone have any suggestions?

Thanks,
Wayne
Reply With Quote