How can i retrive the filename in .htaccess file

images php coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Post by ruturajv » Wed Jun 29, 2005 10:15 pm

please check mod_rewrite

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Post by gesf » Thu Jun 30, 2005 1:17 pm

Environment variables inside %{}.
Example:

Code: Select all

RewriteCond %{HTTP_HOST} ^([^.]+)\.
RewriteCond %1 !^www$ [NC]
RewriteRule ^(.*)$ http://www.whatever.com%{REQUEST_URI} [R,L]
So, what you need is probably %{SCRIPT_NAME}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest