Hi,
Can I have somebody write a .htaccess file that will redirect all subdirectories with at LEAST 1 dot (there can be more) in it to a .php file?
Eg:
www.domain.com/subdirectory.e
Redirects to a file called show.php (in the public_html directory)
Then, to the PHP file, send two variables: the text before the FIRST dot (there can be more than one dot in the directory name, like "subdirectory.e.v") and the text AFTER the first dot, but ignoring ALL OTHER dots (the first dot should NOT be included in any variable)
So, in this:
www.domain.com/subdirectory.e.v
Should send only 2 variables to the PHP file:
$var1 = "subdirectory"
$var2 = "e.v"
(There will never be more than 2 dots if you need to know, but always at least 1)
25 NP$ to the person who can do this!
Thanks,
-Matt
Can I have somebody write a .htaccess file that will redirect all subdirectories with at LEAST 1 dot (there can be more) in it to a .php file?
Eg:
www.domain.com/subdirectory.e
Redirects to a file called show.php (in the public_html directory)
Then, to the PHP file, send two variables: the text before the FIRST dot (there can be more than one dot in the directory name, like "subdirectory.e.v") and the text AFTER the first dot, but ignoring ALL OTHER dots (the first dot should NOT be included in any variable)
So, in this:
www.domain.com/subdirectory.e.v
Should send only 2 variables to the PHP file:
$var1 = "subdirectory"
$var2 = "e.v"
(There will never be more than 2 dots if you need to know, but always at least 1)
25 NP$ to the person who can do this!
Thanks,
-Matt




