Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm at my wits' end.

I have just ripped out a website and in the process of rebuilding everything.

Previously, the 'home page' of the website is a blog, with the address "www.mydomain.com/blog1.php".

After exporting everything, I deleted the whole directory, and -- based on request -- immediately create a blog/ directory. The idea is to get the blog back up as soon as possible, and temporarily redirect people accessing www.mydomain.com to the blog.

Accessing the blog via http://www.mydomain.com/blog/ works. So I put in an index.php file containing a (temporary) redirect to the blog's address.

The problem: The server insists on opening blog1.php instead of index.php. Even after we deleted all the files (including .htaccess). And even putting in a new .htaccess file with the single line of DirectoryIndex index.php doesn't work. The server stubbornly wants blog1.php.

Now, the server is actually a webhosting, so I have no actual access to it. I have to do my work via cPanel.

Currently, I work around this issue by creating blog1.php; but I really want to know why the server does not revert to opening index.php. Did I perhaps miss some important settings in the byzantine cPanel menu page?

share|improve this question

1 Answer 1

Try contacting them and asking them to restart the Apache service. I had a similar issue long back with shared hosting. I had to get them to restart the Apache web service. Something cached in the memory.

share|improve this answer
    
Makes sense, although since it's a webhosting, I'm not sure they will do it. But thanks, anyway! Won't hurt to try :-) –  pepoluan Oct 24 '13 at 10:59

Your Answer

 
discard

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.