Results 1 to 7 of 7
April 14th, 2009, 11:28 AM #1broken site from htaccess
I was adding a new entry to my htaccess file and all the mod rewrites broke. I removed the entry, but everything still seess to be broken. I rewrite /home.php to /home but it's now broken. I didn't change this entry in the htaccess file.
I get the error.
The requested URL /home was not found on this server.
I rewriting site.com/home to site.com/home.php # RewriteRule ^home$ home.php [L] #
April 14th, 2009, 11:38 AM #2
- Join Date
- May 20th, 2007
RewriteRule ^home$ /home.php [L]
RewriteRule ^home/$ /home.php [L]
RedirectPermanent /home/ /home.php
April 14th, 2009, 12:04 PM #3
Seems there was a problem with the formatting of the htaccess file. When I pulled the copy from the server, it was one single line with no line breaks. Not sure how that happened.
April 14th, 2009, 02:20 PM #4
April 14th, 2009, 03:10 PM #5
Had that happen to me a few weeks ago. Scared the crap out of me.....had the same rewrite error.
Sometimes when you ftp plain text files in 'auto' mode, the carriage returns get stripped out. Never figured out why.Joey
Myrtle Beach SC
April 14th, 2009, 10:01 PM #6
I also had an .htaccess scare last night. Maybe it's a jinx.
I left a </limit> all the way at the bottom of the file and forgot to take it out and gave me a 500 error, whatever that means.
beachcom, that reminds me to keep a copy. I looked at my old copy on my HD and it was nowhere near the one that I had on the server. Time to back up.
April 15th, 2009, 02:55 PM #7
Just make sure you transfer .htaccess always in ASCII (plain text) mode ;-)[URL=http://www.hesk.com]Help desk software[/URL]
By John Kruger in forum Programming / Datafeeds / ToolsReplies: 13Last Post: February 8th, 2008, 10:20 AM