Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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

Posts: 20
Name: Chris
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
clexmond is offline
Reply With Quote
View Public Profile Visit clexmond's homepage!
 
 
Register now for full access!
Old 08-20-2007, 03:30 PM Re: .htaccess in Notepad issue
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
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...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 08-20-2007, 05:35 PM Re: .htaccess in Notepad issue
Average Talker

Posts: 20
Name: Chris
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
clexmond is offline
Reply With Quote
View Public Profile Visit clexmond's homepage!
 
Old 08-20-2007, 08:09 PM Re: .htaccess in Notepad issue
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
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 ).
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 08-20-2007, 09:34 PM Re: .htaccess in Notepad issue
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
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 09:36 PM..
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to .htaccess in Notepad issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.39786 seconds with 12 queries