Reply
.htaccess in Notepad issue
Old 08-20-2007, 12:37 PM .htaccess in Notepad issue
Average Talker

Posts: 20
Name: Chris
This might be something everyone already knows, and I was just not thinking, but I couldn't figure out why my .htaccess file wasn't working for hours. Then, I figured out that having word wrap on in notepad will prevent it from working alltogether. So, if you're having issues with a 301 redirect, or password protect, whatever, make sure you turn off word wrap on notepad.
clexmond is offline
Reply With Quote
View Public Profile Visit clexmond's homepage!
 
When You Register, These Ads Go Away!
Old 08-20-2007, 02:30 PM Re: .htaccess in Notepad issue
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
You might want to give Notepad++ a try; it's open source, which means free, but also one of the best code editors out there. There are tabs for multiple documents, syntax highlighting, although it doesn't have .htaccess as a built in highlighting language, but that along with plenty of other code friendly features, it's worth the price...
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 08-20-2007, 04:35 PM Re: .htaccess in Notepad issue
Average Talker

Posts: 20
Name: Chris
So then I'm assuming Notepad++ doesn't have issues with inserting special characters for hard line breaks, as that was my issue with normal Notepad.
clexmond is offline
Reply With Quote
View Public Profile Visit clexmond's homepage!
 
Old 08-20-2007, 07:09 PM Re: .htaccess in Notepad issue
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
Well, it'll use line break characters ... cr, lf, or both, depending on the environment you want to write to ... but it can do word wrap on screen without actually saving it to the file that way. I'm shocked the regular Notepad got this wrong!

Anyway, I'm not associated with that project in any way, but I built my site by hand in Notepad++ because of the syntax highlighting, code folding, and other features like that. I'm writing a CMS to avoid having to do this, but I'd highly recommend it, especially for the price ( $0 ).
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 08-20-2007, 08:34 PM Re: .htaccess in Notepad issue
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,322
Name: Keith Marshall
Location: West Hartford, CT
Wow - I didn't realize that notpad will create new lines for its wordwrap - thats a new one for me!

However, I agree above, I think its best to use a third party text editor in which you can control the line feeds.

DOS - CR LF (\r\n)
Unix - LF (\n)
Mac - CR (\r)
__________________

<mgraphic /> - I don't have a solution but I admire the problem.

Last edited by mgraphic : 08-20-2007 at 08:36 PM.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to .htaccess in Notepad issue
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14370 seconds with 12 queries