Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Drupal includes "~username" in URLs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Drupal includes "~username" in URLs
Drupal includes "~username" in URLs
20-04-2010 8:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
We have had a new website designed in Drupal which the designer has just uploaded to the cgi server, but when we view the source code for the Home page all links to files (other than graphics files) have had "~username" inserted before the required folder name.
All the pages linked from the main navigation tabs on the Home page (and subsequent pages) have the same "~..." text inserted after the home page URL and in front of the relevant directory name. In the same way, the URL of the pages when they are returned to the browser by Drupal include the "~..." text.
[By the way, we see no graphics on the Home page = related or not...?]
How can we stop Drupal including the "~username" in the URLs?
Many thanks.
All the pages linked from the main navigation tabs on the Home page (and subsequent pages) have the same "~..." text inserted after the home page URL and in front of the relevant directory name. In the same way, the URL of the pages when they are returned to the browser by Drupal include the "~..." text.
[By the way, we see no graphics on the Home page = related or not...?]
How can we stop Drupal including the "~username" in the URLs?
Many thanks.
Message 1 of 4
(907 Views)
3 REPLIES 3
Re: Drupal includes "~username" in URLs
20-04-2010 11:11 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The presence of /~username arises from use of suEXEC to run scripts. Does Drupal derive link names by using the $_SERVER['PHP_SELF'] or $_SERVER['SCRIPT_NAME'] PHP variables? On new ccgi those variables have /~username added to the file path.
A new variable $_SERVER['SCRIPT_URL'] is available which does not contain /~username.
The absence of graphics could be directory and file access permission (chmod) related. The graphics directory probably needs to be chmod 0750 and the images chmod 0640. Uploaded images inherit their permissions from the directory so once the directory permission is fixed new files should automatically have correct permissions set.
A new variable $_SERVER['SCRIPT_URL'] is available which does not contain /~username.
The absence of graphics could be directory and file access permission (chmod) related. The graphics directory probably needs to be chmod 0750 and the images chmod 0640. Uploaded images inherit their permissions from the directory so once the directory permission is fixed new files should automatically have correct permissions set.
David
Message 2 of 4
(335 Views)
Re: Drupal includes "~username" in URLs
21-04-2010 4:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just for future reference, the 0750 requirement relates to content directories of Wordpress, not Drupal. Drupal will work with the files directory and lower set to 0710, but you may need to disable the .htaccess in the files directory. I would mention bootstrap.inc and settings.php, but it looks like you've sorted that out already.
Gabe
Gabe
Message 3 of 4
(335 Views)
Re: Drupal includes "~username" in URLs
21-04-2010 4:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Many thanks to both. Yes, we have now got things sorted and working.
Much obliged!
Much obliged!
Message 4 of 4
(335 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Drupal includes "~username" in URLs