Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
yacenty Posted October 11, 2013 Posted October 11, 2013 Hi guys, We have our main site as small php file located in root folder. IPB is located in /forum/ and all other aplications like gallery and so on has a link /forum/gallery/ Just now we are fighting with setting up IPC in main root, and rest like it was. How to set up nginx for handling it? we have two config. location / { root /aaaa/public_html; index index.php index.html index.htm; # auth_basic "Restricted"; # auth_basic_user_file /aaaa/public_html/.htpasswd; rewrite_log on; if (!-e $request_filename) { rewrite ^/bbb/(.*)$ /bbb/index.php?q=$1 last; #rewrite . /forum/index.php last; rewrite . /index.php last; } } and teh second cofig with uncomented line: rewrite . /forum/index.php last; but commented next one. In 1. config IPC is working fine, but nothing deeper that /forum/ is working. /forum/gallery/ is broken, /forum/topic/ is broken and so on. In 2. config IPC is not working, but forum and other aps are working. How to fix it? Best regards yacenty
yacenty Posted October 15, 2013 Author Posted October 15, 2013 problem fixed by 2 rules for redirection. main location is redirecting through index.php /forum/ location is redirecting through forum/index.php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.