GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Dec-2008, 23:33
sagarsway sagarsway is offline
New Member
 
Join Date: Dec 2008
Posts: 1
sagarsway is on a distinguished road

Http Apache Server Rewrite Rule Problem


Hi All ,

I need to write 14-15 rewrite rules in httpd.conf, in which i want to redirect some specific url patterns to other domain.

For Ex.
RewriteRule ^/url-id$ www.abc.com

But i want to write it in generic way so that i can change domain abc.com to any test.abc.com.
For that i need to change all 14-15 rewrite rules. So is there any way to define custom variable in httpd.conf file so that i can assign destination host & can use it in rewrite rule like in following .

ContentServer = www.abc.com
RewriteRule ^/url-id$ ${ContentServer}/de/url-id

So user can only change ContentServer property & it will reflect in all rewrite rule.
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Apache HTTP Server for Local Web Server ngjackie Apache Web Server Forum 19 13-Nov-2007 07:07
http request Problem using tomcat - axis & BCB Mario C++ Forum 0 01-Nov-2007 02:53
Named virtual host not working Johnnyrotton Apache Web Server Forum 4 04-Sep-2007 21:32
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 07:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 03:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:27.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.