Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
2.2k views
in Q2A Core by

I created the entry

rewrite ^/q2a/(.+)?$ /q2a/index.php?qa-rewrite=$1 last;

it fixes the urls, but it stops showing the theme. I only see the text of the site. cleanstrap theme qa1.7

Q2A version: 1.7

2 Answers

0 votes
by

if (!-f $request_filename) {
    rewrite ^/q2a/(.+)?$ /q2a/index.php?qa-rewrite=$1 last;
}

 

by
I tested this, but what it stops changing the pages. However, theme stays, but other pages just changes the url and not the actual content on the page.
by
In admin center - URL structure you choose first option?
http://znauka.ru - it work with nginx and i have this setting:
location / {
    index  index.php index.html index.htm;
    if (!-f $request_filename) {
        rewrite ^/(.+)?$ /index.php?qa-rewrite=$1 last;
    }
}
by
i am running qa  on a sub directory
by
I fixed it by create a separate config file and a subdomain.
0 votes
by
edited by

location / {
    index index.php index.html index.htm;
    if (!-e $request_filename) {
       rewrite ^/(.+)?$ /index.php?qa-rewrite=$1 last;
    }
}

http://www.question2answer.org/qa/43081/

...