/webroot/ appended to URL
This is another one of those problems which I thought was unique to my set of stupidity… I was having problems with CakePHP html helper rendering URLs with /webroot/ appended. Instead of http://blah.com/controller/action/ the links were rendered as http://blah.com/webroot/controller/action/
As noted here the problem in my case was concerned with symlink. Since my project was not in the webroot I had created a symlink in webroot for it to the folder where the project was (which was incidentally my Eclipse workspace). This caused the html helper to freak out and append /webroot/ to the domain – however the solution was simple I just deleted to old symlink and created a new symlink which pointed directly to the /app folder within the project and everything worked properly from there on.
As mentioned in the above thread on google groups if symlink is not your problem then do the necessary changes in your app/webroot/index.php
About this entry
You’re currently reading “ /webroot/ appended to URL ,” an entry on SANIsoft – PHP for E Biz
- Published:
- 7.6.07 / 10:31am
- Author:
- Tarique Sani
3 Comments
Jump to comment form | comments rss | trackback uri