I don't know, if it helps people like to convert .htaccess from apache to nginx.
http://winginx.com/en/htaccess
I don't know, if it helps people like to convert .htaccess from apache to nginx.
http://winginx.com/en/htaccess
Hello Bahram,
I am looking for the new rules for nginx, I believe Kevin has them, I am just getting to check my emails at this time, but if I have to, I will resort to apache server until new NGINX rules have been up to date.
Thank you
Brian
Hello,
Has anyone have mod_rewrite working with nginx? I am using ubuntu 16.04 and the best that I have come to is getting rid of the 404 errors and replaced them with no error, but just a page refresh when clicking on a link, so no I have not yet made it work yet but am still looking for a solution. If anyone has it working I would be grateful for the share.
I have not touched the nginx.conf, rather I have modified the /etc/nginx/sites-available/default configuration file. Also, I have tried the other code, specifically by alex, but that has not worked either...I even tried to comment out the other location directives when add alexes' code, but still not working.
Is there any obvious mistakes in this file?
/etc/nginx/sites-available/default file:
BrianCode:Only registered members can view the code.
Add rule for hybridAuthLogin
Code:Only registered members can view the code.
I have added following to the serverblock
#---- flynax rewrite section start ---- #
#non last slash redirect
rewrite ^([^\.]*[^/])$ $1/ permanent;
if (!-e $request_filename)
{
#define paging
rewrite ^/([^/]*)/((.*)/)?(index([0-9]*).ht(m?ml?))?$ /index.php?page=$1&rlVareables=$3&pg=$5 last;
#define listing details
rewrite ^/([^/]*)/((.*)/)?(.+)-l?([0-9]+).ht(m|ml)$ /index.php?page=$1&rlVareables=$3&listing_id=$5 last;
#define browse
rewrite ^/([^/]*)/(.*)(\.html|\.htm|\/)$ /index.php?page=$1&rlVareables=$2 last;
#define single pages
rewrite ^/(.+)(\.html|\.htm|\/)$ /index.php?page=$1 last;
#sitemap rewrite rules
rewrite ^/([a-z_]*)?sitemap([0-9]*).xml$ /plugins/sitemap/sitemap.php?search=google&number=$2&mod=$1 last;
}
#---- flynax rewrite section end ---- #
I still get 500 error
Log entries show following. Please help
2024-04-23 00:17:08
47.128.26.249 - - [22/Apr/2024:14:17:08 +0000] "GET /australia/queensland/nobby/classifieds/car-service-repair/ 2.0" 500 0 "-" "Mozilla/5.0 (Linux; Android 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; Bytespider; spider-feedback@bytedance.com)"
2024-04-23 00:17:16
47.128.44.7 - - [22/Apr/2024:14:17:16 +0000] "GET /australia/queensland/tansey/classifieds/car-service-repair/ 2.0" 500 0 "-" "Mozilla/5.0 (Linux; Android 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; Bytespider; spider-feedback@bytedance.com)"
2024-04-23 00:20:20
139.218.32.18 - - [22/Apr/2024:14:20:20 +0000] "GET /admin/ 2.0" 500 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
2024-04-23 00:20:21
139.218.32.18 - - [22/Apr/2024:14:20:21 +0000] "GET /admin/ 2.0" 500 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
2024-04-23 00:20:22
139.218.32.18 - - [22/Apr/2024:14:20:22 +0000] "GET /admin/ 2.0" 500 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"