Hi,
I just switched from nginx to OLS and I'm experiencing some problems with rewrites in another folder. I think this needs to be done with context but I don't know how to do it.
.htaccess rules look like this:
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
This should be placed in a folder - for example /redirect. Basically this (the index.php) loads a text file and redirects stuff to another url. Example: domain.com/redirect/friendly-name will be redirected to a URL set up in the text file.
I did this easily in nginx but I am stuck here. Can anyone help please?
I just switched from nginx to OLS and I'm experiencing some problems with rewrites in another folder. I think this needs to be done with context but I don't know how to do it.
.htaccess rules look like this:
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
This should be placed in a folder - for example /redirect. Basically this (the index.php) loads a text file and redirects stuff to another url. Example: domain.com/redirect/friendly-name will be redirected to a URL set up in the text file.
I did this easily in nginx but I am stuck here. Can anyone help please?