Jump to content


Photo

mod_rewrite


  • Please log in to reply
1 reply to this topic

#1 pootsey

pootsey
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 24 October 2006 - 06:12 PM

hello,

I have the following code for mod_rewrite

RewriteEngine on
RewriteRule ^([0-9]+)$ index.php?id=$1 [L]

and I was wondering if its possible to make it into subdomains?

IE - 6372.mysite.com rather then the mod_rewrite version mysite.com/6372


thanks alot :)

- pootsey

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 25 October 2006 - 06:09 PM

Not possible I'm afraid AFAIK to make subdirectories with mod_rewrite. As first you need to set-up the subdirectory. Then you can use mod_rewrite to redirect the user top the subdirectory.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users