user site URL

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
bransom's picture

I've installed to say, http://myschool.edu/scholar

If a new user -- johndoe -- starts to do some editing to their site (via the normal control panel tools .../cp/build/layout) and clicks Save, he is returned to
http://myschool.edu/johndoe
instead of
http://myschool.edu/scholar/johndoe

I looked a little at Persistent URL settings but wasn't successful in fixing it there.
Anyone know what is causing this and how to correct it? Note, the problem causes other follow-on URL trouble.

Thanks,
-Ben

Comments

It looks like many people are

ferdi's picture

It looks like many people are having this issue. A fix is to install it in a separate sub/domain (scholar.myschool.edu). Does that work for you ?

Two Questions

mohhess's picture

When you look at the "persistent url" settings, is your default domain (http://myschool.edu/scholar)?

Also, have you changed the .htaccess file in your base directory? There is a section in there about base url that you'll want to change. You'll uncomment out that section and put in /scholar

Re: user site URL

bransom's picture

Thanks for the tips but putting
RewriteBase /scholar
into .htaccess did not fix it.

My option for a pure domain name site is undesirable. Not sure of my plan C.

Thanks tho,
-Ben

This is a shot in the dark,

humansky's picture

This is a shot in the dark, because I haven't experienced this, but in your sites/default/settings.php file, look for the following line:

# $base_url = 'http://www.example.com';

and change it to:

$base_url = 'http://myschool.edu/scholar';

See if that does the trick.

Good Find Humansky, I

mohhess's picture

Good Find Humansky, I remembered there was another place besides .htaccess, but when I responded earlier, I didn't remember that it was in the settings.php file. Ben, did that fix it for you?

Thanks ...unfortunately I

bransom's picture

Thanks ...unfortunately I can't check yet because I did most of the module updates indicated by Reports, and this has broken the site. New errors from views_content_cache_key and others.

It's just a test site to evaluate openscholar, but overall, i'm quickly starting to feel i can't support deploying in real life -- too many bumps. I'll try the fix tho in a fresh new install. Thanks !!

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week