Forum Moderators: phranque
RewriteEngine OnRewriteRule ^add_ads.php$ - [L]
RewriteRule \.(php多tm多tml)$ add_ads.php?file=%{SCRIPT_FILENAME} [L]
{SCRIPT_FILENAME} gives local requested path. But I need to find the remote server path. Like http://currentdomain.com/<requested_file> instead of /var/www/html/index.php
Looking for help!
[edited by: jdMorgan at 5:22 pm (utc) on Mar. 30, 2009]
[edit reason] De-linked, [ code ] formatting corrected. [/edit]
RewriteEngine on
#
RewriteRule ^add_ads\.php$ - [L]
RewriteRule \.(php多tm多tml)$ add_ads.php?file=%{REQUEST_URI} [L]
RewriteEngine on
#
RewriteRule ^add_ads\.php$ - [L]
RewriteRule ^(.+\.(php多tm多tml))$ add_ads.php?file=$1 [L]
RewriteEngine on
#
RewriteCond $1 !^add_ads\.php$
RewriteRule ^(.+\.(php多tm多tml))$ add_ads.php?file=$1 [L]
Jim