# htaccess file - any obvious problems with this code?

**URL:** https://boards.straightdope.com/t/htaccess-file-any-obvious-problems-with-this-code/570617
**Category:** Factual Questions
**Created:** [February 8, 2011, 3:29am UTC](https://boards.straightdope.com/t/htaccess-file-any-obvious-problems-with-this-code/570617 "2011-02-08T03:29:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![andrea\_green](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@andrea\_green](https://boards.straightdope.com/u/andrea_green)
#### Post date: [February 8, 2011, 3:29am UTC](https://boards.straightdope.com/t/htaccess-file-any-obvious-problems-with-this-code/570617/1 "2011-02-08T03:29:29Z")

</div>

I am trying to setup a php script called FMYScript, it is provides generic functionality similar to the popular website fmylife. The script comes with an htaccess file which I think primarily is intended to redirect non-explicit links to pages like “login” to the proper files like “login.php”.

## For some reason I can’t see to make the htaccess file, any suggestions would be most appreciated!!!

\<IfModule mod\_rewrite.c\>  
RewriteEngine On  
RewriteRule ^signup$ /signup.php  
RewriteRule ^account$ /account.php  
RewriteRule ^logout$ /logout.php  
RewriteRule ^login$ /login.php  
RewriteRule ^view/(._)/(._) /view.php?cat=$1&pid=$2  
RewriteRule ^category/(._)/(._) /category.php?cat=$1&name=2 RewriteRule ^top /top.php  
RewriteRule ^flop$ /flop.php  
RewriteRule ^random$ /random.php  
RewriteRule ^password$ /password.php  
RewriteRule ^confirmemail/(._) /confirmemail.php?code=$1  
RewriteRule ^resetpassword/(._) /resetpassword.php?code=1 RewriteRule ^editaccount /editaccount.php  
RewriteRule ^changeemail$ /changeemail.php  
RewriteRule ^changepass$ /changepass.php  
RewriteRule ^resendconfirmation/(._) /resendconfirmation.php?userid=1 RewriteRule ^favorites /favorites.php  
RewriteRule ^members/(._)/(.\*) /memberprofile.php?pid=$1&name=2 RewriteRule ^advanced\_search /advanced\_search.php  
RewriteRule ^moderate$ /moderate.php  
RewriteRule ^termsofuse$ /termsofuse.php  
RewriteRule ^privacypolicy$ /privacypolicy.php  
RewriteRule ^aboutus$ /aboutus.php  
RewriteRule ^advertising$ /advertising.php  
RewriteRule ^contactus$ /contactus.php  
RewriteRule ^mailbox$ /mailbox.php  
RewriteRule ^log\_out$ /log\_out.php  
RewriteRule ^man$ /man.php  
RewriteRule ^woman$ /woman.php  
\</IfModule\>

\<IfModule mod\_security.c\>

# Turn off mod\_security filtering.

SecFilterEngine Off

# The below probably isn’t needed,

# but better ok safe than sorry.

SecFilterScanPOST Off  
\</IfModule\>
