-
- 44 Posts
thanks for that mate! very useful!
For anyone who needs them:
- Rewrite Rules for NGINX
rewrite ^/(en|fr|ru)?(\/)?(.*)$ /index.php?c=$1&q=$3 last;
-
- 221 Posts
Hello,
I'm successfully using subfolders for my context. The gateway plugin works well, and all setting also.
But now in some cases I need to refer to my resources using just index.php?id=... . It works well for the main web content, but when I refer to documents that are in other context it gives me unavailable page.
Please advice me what to do so linking by index.php?id=... will work along with friendly urls.
I need it because some of my flash elements have links with index.php?id=... and for flexebility reasons I don't whant to link providing full friendly url.
Lucas
I don't recommend accessing Resources by two different URLs ever. If using FURLs, you really need to use the FURL links. In Revo 2.2, there is even an option to disable access via ?id=# when friendly_urls are enabled.
-
- 221 Posts
hmm.... @opengeek so what do You suggest to disable change of alias for those documents.
I'm afraid that client can change alias, and than links in my flash naviagtion will be broken.
Lucas
You can "freeze" the URI now to prevent changes in alias from affecting the URI which is used to access the Resource.
-
- 24,544 Posts
And/or block the user from changing either the frozen URL or the alias with Form Customization by hiding the appropriate field in the Create/Edit Resource panel.
-
- 221 Posts
Thank You Opengeek and Bob for shering Your ideas. This will surely solve the problem.
thanks,
Lucas