NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Problems with URL when debugging Drupal beyond home page


Joined: 04 Oct 2007
Posts: 3
Reply with quote
I'm debugging a Drupal site on my local wamp server. I can debug other non-Drupal sites on the same wamp server without an issue, but haven't done any since updating to 5.95.

I'm using the SRV web server.

The url of the site would be /localhost/mysite as it's in the subdirectory 'mysite' in the document root of the wamp server. I assume the project information is set up correctly in phpEd, because the entire site is there and I've been working with it for months, but never had to debug it before now. The root directory for the project is set as c:\www\public_html\mysite

What happens is that when I click the debug button in the toolbar with index.php open, the site comes up fine. The url, though, is
http://localhost:8080
instead of
http://localhost:8080/mysite

When I click a link, like entering a search for 'test', I get
http://localhost:8080/search/node/test
instead of
http://localhost:8080/mysite/search/node/test
and, as a result, a 404
View user's profileFind all posts by baalwwwSend private messageYahoo Messenger


Joined: 07 Jun 2007
Posts: 62
Location: Albuquerque, NM, USA
Reply with quote
Drupal (and many others) rely on mod_rewrite for Apache web server.

You are getting 404 because, that file/folder path does not actually exist, and the server for the debugger doesn't handle .htaccess rules (mod_rewrite).

(The mod_rewrite rules tell all non existing file requests to be passed back to a main index.php or like).

Use remote debugging if possible on a development hosting setup (its what I do, so much nicer than local).
View user's profileFind all posts by skalirSend private messageVisit poster's websiteAIM AddressYahoo MessengerICQ Number


Joined: 04 Oct 2007
Posts: 3
Reply with quote
Makes sense. Thanks!
View user's profileFind all posts by baalwwwSend private messageYahoo Messenger
Problems with URL when debugging Drupal beyond home page
You cannot post new topics in this forum
You cannot 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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic