.htaccess on windows xampp?

Discuss Search Engine Optimization in relation to Joomla!. This forum will also have discussions on SEF/SEO Joomla! extensions.

Moderator: General Support Moderators

Locked
User avatar
docweathers
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Sat Dec 09, 2006 9:59 pm
Location: Spokane WA
Contact:

.htaccess on windows xampp?

Post by docweathers » Fri Aug 29, 2008 2:32 am

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.

User avatar
normdouglas
Joomla! Hero
Joomla! Hero
Posts: 2654
Joined: Fri Jan 20, 2006 11:37 am
Location: Geelong Australia

Re: .htaccess on windows xampp?

Post by normdouglas » Fri Aug 29, 2008 2:43 am

do it from a command line...

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

User avatar
docweathers
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Sat Dec 09, 2006 9:59 pm
Location: Spokane WA
Contact:

Re: .htaccess on windows xampp?

Post by docweathers » Fri Aug 29, 2008 3:42 am

It worked ... Such genius
Thanks . Larry
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.

joom_rock
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Mon Jul 28, 2008 3:43 pm

Re: .htaccess on windows xampp?

Post by joom_rock » Mon Sep 01, 2008 4:39 pm

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.

User avatar
normdouglas
Joomla! Hero
Joomla! Hero
Posts: 2654
Joined: Fri Jan 20, 2006 11:37 am
Location: Geelong Australia

Re: .htaccess on windows xampp?

Post by normdouglas » Tue Sep 02, 2008 3:22 am

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
Step1. Read the instructions. Step2. Refer to step 1. Step 3. Backup

User avatar
docweathers
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Sat Dec 09, 2006 9:59 pm
Location: Spokane WA
Contact:

Re: .htaccess on windows xampp?

Post by docweathers » Tue Sep 02, 2008 4:10 am

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
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.

User avatar
normdouglas
Joomla! Hero
Joomla! Hero
Posts: 2654
Joined: Fri Jan 20, 2006 11:37 am
Location: Geelong Australia

Re: .htaccess on windows xampp?

Post by normdouglas » Tue Sep 02, 2008 5:47 am

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.
Step1. Read the instructions. Step2. Refer to step 1. Step 3. Backup

User avatar
docweathers
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Sat Dec 09, 2006 9:59 pm
Location: Spokane WA
Contact:

Re: .htaccess on windows xampp?

Post by docweathers » Fri Sep 26, 2008 12:34 am

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
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.

User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Rename .htaccess on Windows, enable XAMPP mod_rewrite

Post by kenmcd » Sat Sep 27, 2008 3:36 pm

.
There are other things to check:
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.
That may fix your issue.
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

User avatar
docweathers
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Sat Dec 09, 2006 9:59 pm
Location: Spokane WA
Contact:

Re: .htaccess on windows xampp?

Post by docweathers » Sat Sep 27, 2008 6:23 pm

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
Lawrence Weathers
Child Psychologist
Spokane WA
Signature rules - No more then 4 lines.

jguzman
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Oct 24, 2007 5:22 pm

Re: .htaccess on windows xampp?

Post by jguzman » Thu Oct 02, 2008 3:43 pm

Same here, Enabling Mod Rewrite on Apache also fixed my error (remember to restart the service ;) ). Thanks Larry I appreciate your support


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 1.5”