How can i retrive the filename in .htaccess file

images php coding issues or problems here.

Moderators: egami, macek, gesf

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

Wed Jun 29, 2005 10:15 pm

please check mod_rewrite

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

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}
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests