Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Rewrite Rule for subdomains?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  World Class Internet Services  
Author Message
polarisdk

External


Since: Jan 28, 2005
Posts: 1



(Msg. 1) Posted: Fri Jan 28, 2005 5:35 am
Post subject: Rewrite Rule for subdomains?
Archived from groups: alt>apache>configuration (more info?)

Can someone help me with a Rewrite Rule?

My document root is: /srv/www/htdocs/www.mydomain.com/htdocs

How can I make a rule that changes the webadress www.sub.mydomain.com to
www.mydomain.com/Page.php?URL=sub

<Directory /srv/www/htdocs/www.mydomain.com/htdocs>
RewriteEngine On
RewriteRule [WHAT DO I PUT HERE?]
</Directory>

Regards from Denmark, hey it's snowing here!

Dan

 >> Stay informed about: Rewrite Rule for subdomains? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Rewrite Rule - RewriteEngine On RewriteCond %{REQUEST_URI} ^/postoffice/.+$ RewriteRule ^.*$ http://mailman.%{HTTP_HOST} [R,L] trying to redirect all requests for /postoffice to http://mailman.foobar.com/postoffice where foobar is the virtual host...

Rewrite rule: is it right ? - Hi, I have changed my domain name and I need to redirect visitors to the new one, expecially users coming from search engines. So I have added a rewrite rule like this: RewriteRule ^(.*) http://newdomain.com$1 [L,R=permanent] Can anybody tell if it i...

rewrite rule - hi all can someone tell how i can traslate www.somesite.com/home/someuser to www.somesite.com/index.php?id=someuser it's possible with apache?i have to use a rewrite rule? help me please...

rewrite rule - Hi I want users of my site to be able to download video files, but only on specific conditions. To check these condition (to avoid hotlinking for example), I made a rewriterule: RewriteRule ([^.]*\.mpg) http://www2.tvreclames.nl/download.pl?file=$1 Fo...

Rewrite rule - I have a single Apache 1.3.6 server on my MacX Server (10.2.6) I have 15 Alexandria Library Servers at my schools. Our internal network is 10.0.0.0/8 with NAT to the outside. What I would like to do is add alink on each of the 15 locations web pages..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]