Antworten: 8
Seite [1] |
|
Horr Wannabe poster Beiträge: 25 |
# Thema - 09.05.2012 um 20:55 Uhr
Hey guys! I'm trying to use friendly urls, but im having some issues. Beggining that im using nginxs instead of apache on my linux server, the rules of .htaccess file is different, right? My site have a peculiarity, the url is http:www.mysite.com/site, i have this first param, that i need to declare on my htaccess. the rule that im using on my local site, using apache, is RewriteRule ^site/([^/]+)(.*)$ $1.php?params=$2 [NC,QSA] and its working. But when im se this in server, that use nginx, is not working.. someone can give me some tips? Thanks a lot! |
Inaktiv |
|
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 1 - 09.05.2012 um 20:56 Uhr
http://wiki.nginx.org/HttpRewriteModule#rewrite that might be the corresponding information for that in the nginx wiki ------------------ ClanSphere - professional clan care starts here |
Inaktiv |
|
Horr Thread-Ersteller Wannabe poster Beiträge: 25 |
# Antwort: 2 - 09.05.2012 um 21:10 Uhr
I have to rewrite de .htaccess file intirely for the nginx? theres some other information there.. |
Inaktiv |
|
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 3 - 09.05.2012 um 21:21 Uhr
well clansphere ships rewrite support for apache .htaccess and microsoft iis url rewrite module. in addition there is an approach for a lighttpd solution in this forum done by me. for nginx there is so far no solution build by us and i haven't done it with nginx in the past. maybe i have some time in the near future to test that out, but currently not, sorry. ------------------ ClanSphere - professional clan care starts here |
Inaktiv |
|
Horr Thread-Ersteller Wannabe poster Beiträge: 25 |
# Antwort: 4 - 09.05.2012 um 21:23 Uhr
Ok, thanks for the answer! When i found out how to do this, ill post here! |
Inaktiv |
|
Horr Thread-Ersteller Wannabe poster Beiträge: 25 |
# Antwort: 5 - 12.05.2012 um 06:50 Uhr
Just a bump, im stuck at it :( |
Inaktiv |
|
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 6 - 12.05.2012 um 11:23 Uhr
i've tested clansphere on nginx 1.2 and it runs fine. haven't got the time to test rewrites so far, maybe next week. ------------------ ClanSphere - professional clan care starts here |
Inaktiv |
|
ButterdBread Beginner Beiträge: 1 |
# Antwort: 7 - 22.09.2012 um 17:15 Uhr
That's the code for nginx config: location / { root /path/to/your/nginx; index index.html; if (!-e $request_filename) { rewrite ^/([^/]+)(.*)$ /$1.php?params=$2; } if (!-e $request_filename) { rewrite (.*)? /$1 redirect; } } |
Inaktiv |
|
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 8 - 22.09.2012 um 18:33 Uhr
i forgot about this thread already, thanks alot. i'll check if it works for me and maybe attach it to git for others if thats ok. ------------------ ClanSphere - professional clan care starts here |
Inaktiv |
|
Antworten: 8
Seite [1] |
Sie müssen sich registrieren, um zu antworten. |