Welcome, Guest
Username: Password: Remember me

TOPIC: How to change the root URL

How to change the root URL 3 years 6 months ago #59240

  • macksie
  • macksie's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
I notice that the root url for my limesurvey does not have the www.

I would like to change this to so that it includes the www (rather than just mywebsite.com) so that the root urls of my surveys match all the other pages on my website (which have the www), for proper indexing etc.

I've managed to figure out that I need to change $rooturl - please correct me if I'm wrong - but am utterly clueless as to how/where to do this.

Any (plain English!) help would be greatly appreciated.
Last Edit: 3 years 6 months ago by macksie.
The administrator has disabled public write access.

Re: How to change the root URL 3 years 6 months ago #59268

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6429
  • Thank you received: 840
  • Karma: 249
Update your config.php for the url you want.

And if you have access to your apache virtualhost config
<VirtualHost *:80>
    ServerAdmin postmaster@example.org
    DocumentRoot /home/example.org/htdocs/www
    ServerName www.example.org
      <Directory /home/example.org/htdocs/www>
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
      </Directory>
    CustomLog ${APACHE_LOG_DIR}/example.org-access.log common
    ErrorLog ${APACHE_LOG_DIR}/example.org-error.log 
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin postmaster@example.org
    DocumentRoot /home/example.org/htdocs/www
    ServerName example.org
    redirect permanent / http://www.example.org/
</VirtualHost>

Change the document root according .
Last Edit: 3 years 6 months ago by DenisChenu.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.146 seconds
Donation Image