Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Please note that I have installed dynamic web pages (PHP) in the directory *public_html/old/* in order to create the web site Actually I have created a PHPBB forum and thus the URL of a topic is:


or the URL of the index file is:


What I would like to do is to change the name of directory “old” to “new”. I have been consulted that it can be done by editing the file .htaccess that exists in the directory *public_html* and write inside:

Redirect permanent /old

Could you please let me know if is this correct or should I write instead of Moreover could you please let me know whether this effects any aspect of my web site?

In addition I have been informed that if I change the name of the directory then it may break my web site (since I will have changed the path or location of the script) unless I configure it to work correctly. Could you please let me know what should the configurations be?

share|improve this question

1 Answer 1

From the phpBB documentation if you move the directory in which it is installed you may need to change the SCRIPT PATH as defined in the configuration file. It looks like you will only need to do this if you also have the FORCE SERVER URL SETTINGS option set, otherwise phpBB adapts to whatever directory you have it in.

Your redirect code looks correct. As you note, you may want to add a www into it. If your preferred URL is with the "www", then use it in the redirect.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.