Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Modificaion of htaccess for changing how php and directori..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  .htaccess allow from hostname  
Author Message
aaron4

External


Since: Aug 12, 2004
Posts: 6



(Msg. 1) Posted: Thu Aug 12, 2004 1:02 pm
Post subject: Modificaion of htaccess for changing how php and directories are parsed
Archived from groups: alt>apache>configuration (more info?)

I have a PHP script that allows you to pass variables as directorynames

i.e. instead of: http://www.abc.com/test.php?id=12&product=34
I could write: http://www.abc.com/test.php/12/34/

Looking at the code I'm pretty sure it'll work, and I can parse all of the
data myself.

Trouble is my ISPs web server is interpreting the URL wrong and so test.php
is not being called.

I thinkt is treating the url as a folder '34' in a folder '12' in a folder
'test.php'
instead of test.php with a random string afterwards.

I get the error (500) "There was an error in the script
http://www.abc.com/test.php/12/34 or the script was not found."

Is there anyway to modify my .htaccess to say "if any URI in this folder
contains test.php simply call test.php and don't treat anything after as a
folder.

I can therefore use $REQUEST_URI to parse my URLs

Any ideas?

Cheers

 >> Stay informed about: Modificaion of htaccess for changing how php and directori.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Access from only one, changing IP - Hi, i want to give access only one person via the internet to my apache server. The problem is, that his ip adresse is changing once a day. I have no problem getting his ip. When i put this ip into the httpd.conf file with the <allow from <ip>...

MOD_REWRITE for changing the servername - Hi , I am stuck at this rewrite issue. I need to rewrite my url from http://ServerName/xyc/abz to http://Servername.domain.com/xyc/abz I tried to look RewriteCond %{SCRIPT_URI) !^http://Servername\.domain\.com.* RewriteRule ^http://ServerName/(.*) ....

log files perms keep changing - Hi, I changed two of my log files (access_log and error_log) perms to 644 but each time apache adds another entry to the log files (or so it seems) the perms change back to 640. Where is this comming from? and how can i prevent it? Apache 1.3.27 on mdk...

Changing appearance of directory listings - Hi there! Is there a way of changing the appearance of directory listings in Apache? I only found something regarding error pages... Jochen

changing charset for downloading files - Hi I'm from Slovenia and our writing includes characters such as c, s, z (I don't even know if you got them right but it doesn't matter). The corresponding charset for this writing is WINDOWS-1250. I'm serving some files to people from my apache but the...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]