# I really Need this htaccess url rewrite to Nginx rewrite

**URL:** <https://www.ruby-forum.com/t/i-really-need-this-htaccess-url-rewrite-to-nginx-rewrite/235468>\
**Category:** NGINX\
**Created:** [June 23, 2013, 7:15pm UTC](https://www.ruby-forum.com/t/i-really-need-this-htaccess-url-rewrite-to-nginx-rewrite/235468 "2013-06-23T19:15:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [June 23, 2013, 7:15pm UTC](https://www.ruby-forum.com/t/i-really-need-this-htaccess-url-rewrite-to-nginx-rewrite/235468/1 "2013-06-23T19:15:00Z")

</div>

Dear nginx forum members, im buying the script and it has only apache  
rules(htaccess) and i have difficulties convert the htaccess to nginx  
rewrite rules, the file is:

=====================================================================  
  
RewriteEngine On  
RewriteBase /  
RewriteRule ^login$ login.php  
RewriteRule ^logout$ logout.php  
RewriteRule ^log\_out$ log\_out.php  
RewriteRule ^welcome$ welcome.php  
RewriteRule ^getbutton$ getbutton.php  
RewriteRule ^lost$ lost.php  
RewriteRule ^invite$ invite.php  
RewriteRule ^invite\_friends$ invite\_friends.php  
RewriteRule ^add\_pin$ add\_pin.php  
RewriteRule ^signup$ signup.php  
RewriteRule ^invite\_signup$ invite\_signup.php  
RewriteRule ^confirmemail$ confirmemail.php  
RewriteRule ^createboard$ createboard.php  
RewriteRule ^createboard2$ createboard2.php  
RewriteRule ^pin\_success$ pin\_success.php  
RewriteRule ^pin\_create\_popup$ pin\_create\_popup.php  
RewriteRule ^report\_popup$ report\_popup.php  
RewriteRule ^gifts$ gifts.php  
RewriteRule ^videos$ videos.php  
RewriteRule ^more$ more.php  
RewriteRule ^more2$ more2.php  
RewriteRule ^more3$ more3.php  
RewriteRule ^more4$ more4.php  
RewriteRule ^more5$ more5.php  
RewriteRule ^more6$ more6.php  
RewriteRule ^more7$ more7.php  
RewriteRule ^more8$ more8.php  
RewriteRule ^more9$ more9.php  
RewriteRule ^more10$ more10.php  
RewriteRule ^more11$ more11.php  
RewriteRule ^more12$ more12.php  
RewriteRule ^popular$ popular.php  
RewriteRule ^all$ all.php  
RewriteRule ^search$ search.php  
RewriteRule ^add\_popup$ add\_popup.php  
RewriteRule ^pin\_popup$ pin\_popup.php  
RewriteRule ^upload\_popup$ upload\_popup.php  
RewriteRule ^board\_popup$ board\_popup.php  
RewriteRule ^about$ about.php  
RewriteRule ^pinit$ pinit.php  
RewriteRule ^rules$ rules.php  
RewriteRule ^help$ help.php  
RewriteRule ^tos$ tos.php  
RewriteRule ^privacy$ privacy.php  
RewriteRule ^contact$ contact.php  
RewriteRule ^myboards$ myboards.php  
RewriteRule ^mypins$ mypins.php  
RewriteRule ^mylikes$ mylikes.php  
RewriteRule ^settings$ settings.php  
RewriteRule ^edit\_pin$ edit\_pin.php  
RewriteRule ^edit\_board$ edit\_board.php  
RewriteRule ^edit\_pass$ edit\_pass.php  
RewriteRule ^delete\_create\_popup$ delete\_create\_popup.php  
RewriteRule ^delete\_board\_popup$ delete\_board\_popup.php  
RewriteRule ^source/(.\*)?$ source.php?q=$1&%{QUERY\_STRING}  
RewriteRule ^pin/([^/.]+)?$ pin.php?PID=$1&%{QUERY\_STRING}  
RewriteRule ^([^/.]+)/pins?$ profilepins.php?uname=$1&%{QUERY\_STRING}  
RewriteRule ^([^/.]+)/likes?$ profilelikes.php?uname=$1&%{QUERY\_STRING}  
RewriteRule ^([^/.]+)/followers?$  
followersprofile.php?uname=$1&%{QUERY\_STRING}  
RewriteRule ^([^/.]+)/following?$  
followingprofile.php?uname=$1&%{QUERY\_STRING}  
RewriteRule ^([^/.]+)/([^/.]+)/followers?$  
followers.php?uname=$1&bname=$2&%{QUERY\_STRING}  
RewriteRule ^([^/.]+)/([^/.]+)?$  
board.php?uname=$1&bname=$2&%{QUERY\_STRING}  
RewriteRule ^([^/.]+)(/)?$ profile.php?uname=$1

 # Turn off mod\_security filtering. SecFilterEngine Off
# The below probably isn’t needed,

# but better safe than sorry.

SecFilterScanPOST Off

=====================================================================

any help will be appreciated 🙂 i’ll buy a coffee. hope somebody help  
me to  
convert.

Posted at Nginx Forum:

> **[I really Need this htaccess url rewrite to Nginx rewrite](https://forum.nginx.org/read.php?2,240287,240287#msg-240287)**
>
> Dear nginx forum members, im buying the script and it has only apache rules(htaccess) and i have difficulties convert the htaccess to nginx rewrite rules, the file is: ===================================================================== \<IfModule...
