|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
enabling i.e... this.php/xxx/xxxx/xx.ext
ie I want apache to parse
http://www.any.com/file.php/variabl...le/variable.ext so file.php has the 'variable/variable/variable.ext' as a $variable - apparantly this does not work on the firepages bundle but does on some hosts and a couple of guys I know are desperate to mimic this offline & they use the firepages bundle for offline testing. I have looked at mod_rewrite with glazed eyes ;( this is really not my territory but I would like to get them on track. any help or links appreciated. (this is on apache 1.3.19 running on Win(I think)98) |
|
#2
|
|||
|
|||
|
>> this is on apache 1.3.19 running on Win(I think)98)
First of all, I know nothing about Apache on Windows. Anyway, say you request http://www.any.com/file.php/abc/def/ghi/j.html, this URL stays in browser location bar unchanged: #http://www.any.com/file.php Code:
<html> <body> <?php $variable = "$QUERY_STRING"; echo "$variable\n"; ?> </body> </html> #http://www.any.com/.htaccess or preferrably specify this in httpd.conf Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/file\.php/(.+)$
RewriteRule ^file.php/(.*)$ /full/system/path/to/file.php?$1 [L]
Or use RewriteRule ^file.php/(.*)$ /full/system/path/to/file.php?$1 [T=application/x-httpd-php,L] which should be more reliable. |
|
#3
|
||||
|
||||
|
freebsd, you are a gem...
that rewrite stuff gives me the shudders.. Cheers. |
|
#4
|
||||
|
||||
|
Just a quick add on for anyone using phpdev or php as a CGI...
I had to add /php/php.exe ....i.e RewriteRule file.php/(.*)$ /php/php.exe/file.php?$1 [L] & I assume that thats windows/CGI specfic? |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > enabling i.e... this.php/xxx/xxxx/xx.ext |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|