![]() |
|
#1
|
|||
|
|||
Http Apache Server Rewrite Rule ProblemHi 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 GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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