I've got my website working as it should in my domain's root (public_html) directory. As I'm developing a new theme, I'd like to move the whole site (all drupal's files) to a subdirectory (let's say html_public/drupal_test) and add a simple index.html to the root explaining the site is being redesigned.

The theme is ready, but because is my first theme, I know I'll find things that will need sorting. So I thought of this solution. This way, my visitors will know I'm offline for a bit, while I still can use the site to iron out any issues with my theme.

The problem is, when I move the drupal files to my subdirectory, my secondary pages (about, services, etc) stop working. The homepage is working though. I do use the module (I forgot it's name) that change the page's addresses: instead of mydomain.com/node_21 (something like that) it shows mydomain.com/about

Can anyone help me to make the pages work in this new temporary directory in a way that I can change it back to when the theme is ready?

Many thanks!

PS: In order to develop my theme I installed a local copy of drupal in my machine. I tried to use my website's database, but for whatever reason phpMyAdmin could not import my database locally, so instead I've created a dummy site (with a few pages) so I could develop my theme.

Comments

yelvington’s picture

You're making this much harder than it needs to be. There's no need to move files around. Go to admin/user/permissions, give yourself permission to select multiple themes, then go to your profile and select your development theme.

It is highly recommended that you select an administrative theme from the core set so you don't lock yourself out inadvertently while working on your development theme.

thorandzeus’s picture

Hum..., you gave me a good idea, but there are 2 things to it:

- Firstly, I couldn't set the permission for me to use more than 1 theme. I already have the admin theme as Garland. But I can either set my theme for the whole site or not.

- Secondly and more importantly, the website is gonna be different in many ways, i.e. the current theme have tags on the side, the theme won't have them. There are quite a few blocks that is going to be in a different position to complement the new visual. But if I change that (like removing the tags for instance) while the previous theme is still available to anonymous users, the site will look very bad to say the least (because it was designed to have those features) and probably the user experience will be a bit scary...lol

Any other suggestions?

Many thanks for the message.