php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22699 URL's like http://subdomain.site.com/script.php/test/this won't work
Submitted: 2003-03-14 06:15 UTC Modified: 2003-03-15 23:22 UTC
From: php at pyrom dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.1 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at pyrom dot com
New email:
PHP Version: OS:

 

 [2003-03-14 06:15 UTC] php at pyrom dot com
When using a subdomain such as subdomain.site.com/index.php/test/this the script does not run and returns an error 
unknown(): unable to open /www/x/xxxx/htdocs/test/this

The subdomain is missing from the real path and the script returns a blank screen.

This is using an apache .htaccess such as
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} subdomain.site.com
RewriteCond %{REQUEST_URI} !subdomain/
RewriteRule ^(.*)$ subdomain/$1 [L]

Hope this helps


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-15 23:22 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Not enough information. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 07 23:01:27 2024 UTC