Jump to content

Archived

This topic is now archived and is closed to further replies.

pootsey

mod_rewrite

Recommended Posts

hello,

I have the following code for mod_rewrite

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

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.