PDA

View Full Version : Htacces converting help


Bug
11-29-2008, 01:58 PM
Hello,i need help about converting on ngnix

if ($host = 'sex-slike.com' ) {
rewrite ^/(.*)$ http://www.sex-slike.com/$1 permanent;
}

#Options +FollowSymLinks
#RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
##else /otherdir
#RewriteBase /

## uncomment(i.e:remove # ) below lines if the static url doesn't work
## and rename files show.php -> show2.php, out.php -> out2.php, view.php -> view2.php, images.php -> images2.php,
#rewrite ^/show\.php/(.*)$ /show2.php?img=$1 last;
#rewrite ^/out\.php/([a-z]{1})(.*)$ /out2.php?$1=$2&%{QUERY_STRING} last;
#rewrite ^/view\.php/(.*)$ /view2.php?img=$1 last;
#rewrite ^/images\.php/([a-z]{1})(.*)$ /images2.php?$1=$2&%{QUERY_STRING} last;

rewrite ^/users/(.*)\.html$ /user.php?user=$1 last;

rewrite ^/gallery/([0-9]+)-([^/]*)/(.*)$ /gallery.php?gal=$1&img=$3 last;
rewrite ^/viewimg/([0-9]+)-([^/]*)/(.*)$ /gallery_body.php?gal=$1&img=$3 last;


<Files 403.shtml>
order allow,deny
allow from all
</Files>

an i get this error

2008/11/21 16:08:07 [emerg] 1989#0: unexpected end of file, expecting ";" or "}" in /home/sexklipo/nginx/sex-slike.sex-klipovi.com:29


WT*? :) any help ? :)

APT-Joe
11-29-2008, 04:52 PM
Comment or remove:


<Files 403.shtml>
order allow,deny
allow from all
</Files>


Seems kinda useless, you are saying here, allow everyone to read the 403.shtml file, it does it already without it :)