Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
JamesBB Posted January 21, 2013 Posted January 21, 2013 Hello :smile: I am running nginx, over time I have asked people to share their re-write rules on here but for some reason people seem to be a little unwilling to do so which is fine. I am interested in finding out where IPboard writes it's .htaccess files for apache I'm having a hard time finding them.. I have the one for the admin folder, but would like to know where the rest are that according to the ACP states this: IP.Board can write .htaccess files to non-PHP directories to prevent PHP and CGI files from executing. IP.Board has located some .htaccess files. It provides a very quick window that jumps up that tells you where they are but not long enough for me to stop and read. My main motivation in this is so I can interpret the files and convert them into nginx re-writes.
Grumpy Posted January 22, 2013 Posted January 22, 2013 If you're running nginx, .htaccess is completely useless to you.But to answer your question on "where", they should be found in the root of your IPB folder.It's quite simple to put it in terms of nginx. Just forward everything to index.php if not static file.That is... location ~ (.jpg|.png|...etc...)$ { your static serving method goes here. } location / { ... fastcgi_param SCRIPT_FILENAME /path/to/your/thing/index.php; OR proxy_pass SCRIPT_FILENAME /path/to/your/thing/index.php; ... } That's pretty much it.
JamesBB Posted January 22, 2013 Author Posted January 22, 2013 Thanks anyhow, but I would still like to find out the locations of the files. I am also on a learning process with Nginx, I would like to find the files to see if I can translate them into my Nginx config for my own satisfaction.
Dmacleo Posted January 22, 2013 Posted January 22, 2013 ip board doesn't write any htaccess files except for when you tell it to password protect the admin folder. and its at the forum root (wherever you installed it) as said above. but if board was never on apache I think there would be no htaccess files there.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.