By gibbus on
Hello,
I have just installed Drupal on a space server that already contains the old version of the website.
I need to configure Drupal while the old website is still on, but my problem is that all URLs redirect to www.mywebsite.com (which shows the old website www.mywebsite.com/index.htm) while I need to be redirected to www.mywebsite.com/index.php.
How can I temporarily change this?
Sorry for my bad English, I hope you understand me.
Comments
non-drupal solution
Easy solution:
Rename index.html to index2.html or whatever you like.
In case that isn't possible, the difficult solution:
There is a way to do this, without Drupal. See how you can change the 'Default Directory Page' using .htaccess here: http://www.javascriptkit.com/howto/htaccess6.shtml (there is also a nice introduction to htaccess in case you don't know anything about it)
problem non resolved
I have tried with .htaccess file but with no success.
I believe that I didn't explain my problem in an understandable way.
When people visits my website they see the index.html page (the old website) because I'm working on Drupal index.php page and I'm not ready to show index.php page.
My problem is that when I work on Drupal pages to configure it, all the links are (for example)
http://www.mywebsite.com/?q=admin
so, I'm always redirected to index.html page while I need to go to index.php page:
http://www.mywebsite.com/INDEX.PHP?q=admin
Is it possibile to change the Drupal URLs?
Thank you very much.
Including index.php in menu item urls
I have the same issue. I want normal visitors to arrive at index.html but to have test users able to access the Drupal version via www/site.com/index.php.
I included DirectoryIndex index.html index.php directive in .htaccess to ensure .html file takes precedence but the Drupal site menu urls are generated without index.php in them.
Is it possible to force /index.php to be include in menu urls prior to ?q=node/x ??
There must be some neato .htaccess directive to achieve this by Apache controls are a foreign language.
When drupal site is tested I just delete the index.html file and everyone sees the new site!
Solved for the time being
Here's how I got over this problem. I changed the last few lines of the .htaccess file to read:
Any url with any query strign gets rewritten as /index.php/?q=querystring.
Brutal but successful.
Same problem with index.php
Hi there,
I've just finishing my installation of Drupal 5.8 -Apache udgrading from Drupal 4.6.3 - IIS (version online) Everything is going ok.. but.. something is happen with my new version urls... they don't include 'index.php' that is included in all my urls of my actual online version (Drupal 4.6.3)
I've worked with rockoyster's solution but no way....
Any another options?
thanks in advance...
Adrian