I just installed 5.1 this week, and have been making some changes and adding modules. I just realized that my site shows the folder name "drupal-5.1" example: www.site.com/drupal-5.1/node/2

I would like to change the name of the folder, but wasn't sure if it would mess everything up. Or, is there a better way to mask it?

FYI, this is my first CMS, so I am green with the terminology.

Thanks

Comments

jsiverson007’s picture

go ahead and rename the folder to whatever you want, it shouldn't break anything. i believe drupal only looks at what is below the root folder, so you should be ok.

stefkeB’s picture

This doesn't work for me...

This goes fine at first sight, but soon, the old folder name is inserted into the links. I assume that this name is stored in the main database, somewhere.

--- stefkeB ---

vm’s picture

setting base_url in settings.php after the folder change may work.

govinda1100’s picture

i have changed the base url in the settings php file.. but the site links are giving broken links. wil it be alright after some hours.

vm’s picture

clear you cache tables in the DB

if necessary try turning off then back on clear urls (if this was in use originally)

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

govinda1100’s picture

hello sir. i emptied these tables on my database:

# cache
# cache_filter
# cache_menu
# cache_page

and i cleared the browser cache.

Now i get plain site. without any theme! And the links are still broken.

see my site here:
http://www.gandhadagudi.com/main/

should i wait for some more time for all this to get adjusted.

vm’s picture

have you tried changing themes ? then changing back to what you are using to rengerate the cache ?

goto administer -> themes, switch to a default theme
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

govinda1100’s picture

i think i can change to default theme thro database tables. i have no idea in which table this information is stored.

or should i clear any cache on ftp? or shall i again empty those 4 cache table to ensure that new information is loaded.

govinda1100’s picture

i tried changing my theme to default (marvin?). But it doesnt work for any theme also. I mean i tried changing different themes, but i got a 404 error. Probably, the button "save configuration" has been marked with the old URL... so what else can i do?

vm’s picture

If you are 100% positive that your $base_url is , uncommented and correct

you can try commenting out, $base_url, so that it isn't used.

If you change the folder name back does all work again ?
have you altered in any way .htaccess ? that would be producing this ?

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

govinda1100’s picture

i am sorry. sir i dont know how. but when i checked the settings.php file now, the base url was old one (mysite.com/drupal)... then i changed the base url to mysite.com/main and then cleared db and my browser cache.

But even after some trying it did not work. So i finally renamed back the folder from MAIN to DRUPAL. and now it seems to be working perfectly.

I checked the .htaccess file. and i feel i have not tampered it in any way also.

You can now just check my site to see that the site is now working very fine.

Now i will not make any changes till you offer me the next reply.

But after that, i am planning to do take these steps:
1. to change the base url at settings.php file
2. to rename the folder.
3. clear the db cache tables (together 4 tables to be cleared)
4. wait for 2-3 hours.
5. to clear my browser cache and try a hard refresh.

Please give me your suggestions.
(i am ready to mail you my settings and htaccess files for your reference.)

govinda1100’s picture

hello dear friends. my problem was finally solved. Thanks to verymisunderstood for his great support and help.

The problem was that the read write permissions of settings.php was set to READ ONLY. Hence whenever i made changes to settings.php file, the changes were not changed.

I realised this now and changed the permission to write and read. And then i made the changes, then saved the file. Now after everything is ok, i made back the permissions for settings.php to read only.

I think many of the newbies may make this mistake and may not succeed. So double check whether the base url is changed in settings.php file. And make sure that you have write permissions.

Now, this marks the beiginning of me using drupal for live site. My site will go live in some time. Thanks to the whole drupal team for making drupal open source.