
.htaccess on windows xampp?
Moderator: General Support Moderators
- docweathers
- Joomla! Intern
- Posts: 80
- Joined: Sat Dec 09, 2006 9:59 pm
- Location: Spokane WA
- Contact:
.htaccess on windows xampp?
I am developing a 1.56 site on Xampp running on XP. I am trying to get the SEF set up. Of course, windows will not let me change htaccess.txt to .htaccess
How can I work around this?

Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
- normdouglas
- Joomla! Hero
- Posts: 2654
- Joined: Fri Jan 20, 2006 11:37 am
- Location: Geelong Australia
Re: .htaccess on windows xampp?
do it from a command line...
Start Run > cmd
then type rename c:\pathtoyourhtaccessfile\htaccess.txt .htaccess
will do the trick
Start Run > cmd
then type rename c:\pathtoyourhtaccessfile\htaccess.txt .htaccess
will do the trick
Step1. Read the instructions. Step2. Refer to step 1. Step 3. Backup
- docweathers
- Joomla! Intern
- Posts: 80
- Joined: Sat Dec 09, 2006 9:59 pm
- Location: Spokane WA
- Contact:
Re: .htaccess on windows xampp?
It worked ... Such genius
Thanks . Larry
Thanks . Larry
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
-
- Joomla! Intern
- Posts: 57
- Joined: Mon Jul 28, 2008 3:43 pm
Re: .htaccess on windows xampp?
I'm running joomla 1.5.6 on xampp on windows as well and applied your technique, the htaccess.txt has been successfully changed to .htaccess but the problem is after I got the .htaccess file I can't open my site anymore . I got
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost
09/01/08 23:34:58
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5
the site is working again right after i changed .htaccess back to htaccess.txt . please advise
Thanks.
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost
09/01/08 23:34:58
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5
the site is working again right after i changed .htaccess back to htaccess.txt . please advise
Thanks.
- normdouglas
- Joomla! Hero
- Posts: 2654
- Joined: Fri Jan 20, 2006 11:37 am
- Location: Geelong Australia
Re: .htaccess on windows xampp?
Perhaps your .htaccess is ill formed, or you have full read access to it (777).
Without seeing your server details I can't tell you exactly
Without seeing your server details I can't tell you exactly
Step1. Read the instructions. Step2. Refer to step 1. Step 3. Backup
- docweathers
- Joomla! Intern
- Posts: 80
- Joined: Sat Dec 09, 2006 9:59 pm
- Location: Spokane WA
- Contact:
Re: .htaccess on windows xampp?
Actually, I am having exactly the same problem with my .htaccess. I really don't know how to pursue problem solving it. What should the permissions be for the htaccess? How do you get a listing of the command line commands to change such things, rather than having Windows Explorer refuse to make such changes.
Thanks Larry
Thanks Larry
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
- normdouglas
- Joomla! Hero
- Posts: 2654
- Joined: Fri Jan 20, 2006 11:37 am
- Location: Geelong Australia
Re: .htaccess on windows xampp?
Windows Explorer? are you hosting your site from a windows computer?
Wow, that is brave...
If you are only doing it locally, then generally you don't even need to worry about permissions... as WAMP etc, normally don't really care what permissions you have on a windows box.
Wow, that is brave...
If you are only doing it locally, then generally you don't even need to worry about permissions... as WAMP etc, normally don't really care what permissions you have on a windows box.
Step1. Read the instructions. Step2. Refer to step 1. Step 3. Backup
- docweathers
- Joomla! Intern
- Posts: 80
- Joined: Sat Dec 09, 2006 9:59 pm
- Location: Spokane WA
- Contact:
Re: .htaccess on windows xampp?
I am still struggling with this. I just have not had time to work on it recently.
No, I am not hosting my live site from my windows box. I am developing under xampp then using xcloner to upload changes to my webserver. I can get this all to work on my webserver, but not locally on Xampp.
Yes, I am running Xampp on XP sp 3. I can also use the Joomla Explorer to rename the htaccess.txt to .htaccess.
I found that in line 118 of the hppd.conf at C:\xampp\apache\conf, loading the mod_rewrite.so was remarked out. I unremarked and now I can at least get into the admin panel with with the .htaccess renamed.
Any suggestions on what else to try?
Thanks for your help. Larry
No, I am not hosting my live site from my windows box. I am developing under xampp then using xcloner to upload changes to my webserver. I can get this all to work on my webserver, but not locally on Xampp.
Yes, I am running Xampp on XP sp 3. I can also use the Joomla Explorer to rename the htaccess.txt to .htaccess.
I found that in line 118 of the hppd.conf at C:\xampp\apache\conf, loading the mod_rewrite.so was remarked out. I unremarked and now I can at least get into the admin panel with with the .htaccess renamed.
Any suggestions on what else to try?
Thanks for your help. Larry
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
- kenmcd
- Joomla! Champion
- Posts: 5672
- Joined: Thu Aug 18, 2005 2:09 am
- Location: California
- Contact:
Rename .htaccess on Windows, enable XAMPP mod_rewrite
.
There are other things to check:
Once mod_rewrite is installed an running, an Error 500 is usually caused by something in your htaccess file not being right.
I also develop on Win XP with XAMPP.
It is very easy to rename the htaccess.txt file.
Use any text editor, do Save As, select Any File Type (*.*), save as .htaccess.
You can rename it back to htaccess.txt the same way.
.
There are other things to check:
That may fix your issue.kenmcd wrote:
Apache mod_rewrite is not enabled in the default XAMPP installation.
You must enable it.
Apache requirements for mod_rewrite to work
The Apache httpd.conf file has the settings to enable URL rewriting.
Two settings are required.
1. mod_rewrite module is installed
Search file for "LoadModule rewrite_module" and un-comment that line (remove the #)
2. AllowOverride All
Search file for "AllowOverride None" and change it to "AllowOverride All"
3. Restart Apache
Restarting the Apache web server is required for the changes to take effect.
I have XAMPP installed on my C drive, so my httpd.conf file is here:
C:\xampp\apache\conf\httpd.conf
Adjust this for where you installed XAMPP.
Once mod_rewrite is installed an running, an Error 500 is usually caused by something in your htaccess file not being right.
I also develop on Win XP with XAMPP.
It is very easy to rename the htaccess.txt file.
Use any text editor, do Save As, select Any File Type (*.*), save as .htaccess.
You can rename it back to htaccess.txt the same way.
.
██ LibreTraining
- docweathers
- Joomla! Intern
- Posts: 80
- Joined: Sat Dec 09, 2006 9:59 pm
- Location: Spokane WA
- Contact:
Re: .htaccess on windows xampp?
I found the problem. For what it is worth, I had the redirect set to the WWW version
so it was redirecting to www.localhost, Of course, It was not finding it.
Thanks for you help... Larry
so it was redirecting to www.localhost, Of course, It was not finding it.
Thanks for you help... Larry
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 24, 2007 5:22 pm
Re: .htaccess on windows xampp?
Same here, Enabling Mod Rewrite on Apache also fixed my error (remember to restart the service
). Thanks Larry I appreciate your support
