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$ http://www.abc.com/de/url-id
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 = http://www.abc.com
RewriteRule ^/url-id$ ${ContentServer}/de/url-id
So user can only change ContentServer property & it will reflect in all rewrite rule.

pr0gr4mm3r posted this at 14:14 — 29th December 2008.
He has: 1,419 posts
Joined: Sep 2006
Try this:
PHP Starter