#apache - Sat 12 May 2007 between 00:00 and 00:09

NY Lost Funds



scotepi/dir/ works though. thats a real dir and /index.php
i mean its using the last rule.. going to rewrite.php?type=profile&val=foo
DrBacchusWell, sure, of course it is.
what else would it do?
scotepibut i want / to go to index.php
DrBacchusYour rules clearly say that you don't want that to happen.
Are you wanting this stuff to run only if the requested file doesn't actually exist?
scotepiwell thats what im trying to fix
yes
DrBacchusok, so, before you rules, add:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
That'll fix it for you.
scotepididnt work..
DrBacchusCan you be more specific, please?
scotepiits doing the same as it was befor, no change
DrBacchusIs this in a .htaccess file?
scotepiyes
DrBacchusYou may need to prefix the file path.
RewriteCond /var/www/whatever/%{REQUEST_FILENAME} !-d
for example
noodlthere's an odd error he's seeing DrBacchus, (though paraphrased), {alert] Illegal option RewriteEngine
DrBacchusI assumed that was fixed by now.
scotepiit is
spikehello, I'm working with mod_rewrite and I got it working but I'm not sure as to why. the solution was to rewrite the address to the FQDN/$1
DrBacchusIs that what's happening still?
spikerather than just /$1, and I dont get why
noodlwhich makes me think that his Options directive, and the following RewriteEngine, are separated by a newline apache doesn't like
spikein the logs I can see the page name created perfectly, and that page exists etc
DrBacchusspike: The target of a rewriterule is assumed to be a file path, not a URI. If you want it treated as a URI, then put [PT] on the end of the rule.
noodl: He claims that's resolved.
spikeDrBacchus: sorry, not sure I follow, mind explaning? I got the option, but I dont understand why I'd need that
scotepinoodl: i fixed that.. it was how i editing the file
spikewhy rewriting to a path isnt enough..
noodlok ok
spikeI'm using pyblosxom so I have a rule rewriting /somethin.html to /cgi-bin/pyb../something.html
and that worked fine for ages
DrBacchusspike: /$1 would be treated as a file path, ie, relative to the file system root.
scotepihttp://apache.pastebin.ca/484177 thats my current file.. the probolome is... that / doesnt go to index.php /index.php /dir /realfile dont go to the 'right' place witch would be the actual file/dir
DrBacchusscotepi: It would be very useful to see the output of your rewritelogs.

Page: 2 9 16 23 

IrcArchive

NY Lost Funds