# New line problem in htaccess using php

**URL:** <https://forum.kirupa.com/t/new-line-problem-in-htaccess-using-php/191525>\
**Category:** programming\
**Created:** [June 21, 2006, 4:23am UTC](https://forum.kirupa.com/t/new-line-problem-in-htaccess-using-php/191525 "2006-06-21T04:23:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theHollow](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thehollow/32/106_2.png) [@theHollow](https://forum.kirupa.com/u/theHollow)\
**Post date:** [June 21, 2006, 4:23am UTC](https://forum.kirupa.com/t/new-line-problem-in-htaccess-using-php/191525/1 "2006-06-21T04:23:31Z")

</div>

I’m learning how to edit the .htaccess file using php but i cant seem to get strings to print on a new line. ive tried putting  
and \r at the end of sentences but nothing works when i write to the file. is there another way to do it?

Brendan.
