Htaccess File Problem [solved]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Htaccess File Problem [solved]

Postby GrantH » 09. November 2012 21:22

Sorry if this question is super-newbish, but I don't know much about Xampp. Hopefully this will be an easy one for someone to help me with.

I downloaded the .htaccess file from my webserver and placed it into a subfolder of my xampp/htdocs directory (where my website files reside locally). The .htaccess file redirects non-www URLs and URLS containing "index.php" to http://www.mysite.com/." After doing so, when I click a link to my local index page or type the path of the index page into the browser, it tries to redirect me to http://www.mysite.com/, to a subfolder that doesn't exist, and I get a 404 error. Okay, fine, that's all expected as the .htaccess file appears to be doing what it's supposed to. But now I need to be able to see my index.php file locally again, so I tried renaming the .htaccess file to something else and trying again. No luck, I'm still redirected to the domain. So I tried moving the .htaccess file to a completely different location outside of the xampp folder. Still being redirected. I tried quitting xampp, then my browser, then restarting both....still no change. What do I need to do to make Xampp forget the #@*&! redirect so I can see my home page locally again? This is so silly, there must be a simple solution, yes?

Thanks in advance.

Xampp 1.8.0
CP Panel 3.0.12
Windows 7 Home Premium
GrantH
 
Posts: 2
Joined: 09. November 2012 20:43
Operating System: Windows 7 Home Premium

Re: Htaccess File Problem

Postby GrantH » 09. November 2012 22:52

Okay, I knew there had to be a simple fix. I cleared the cache and now it's fine. Should have done that before posting here, sorry.
GrantH
 
Posts: 2
Joined: 09. November 2012 20:43
Operating System: Windows 7 Home Premium


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 192 guests