Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello, when I generate the htaccess, and I select the PrettyURL the Couch. He does not hide or incorporates the data from add_querystring.

My URL is getting so:
http://something.com/about/?var1=test&var2=test2

How to let my URL like this:

http://something.com/about/
or
http://something.com/about/test/

Thank you
Hi Rafael :)

That is expected behavior as no script can possibly know beforehand what your custom querystring variables stand for.

Also, as things stand right now, we cannot put in our own rewrite rules in .htaccess as it'd likely confuse Couch which expects the URLs to be of a known format.

So, I am sorry, but the custom variables will appear in the format that you report.

Thanks.
The only way to hide this as far as I know is using POST AJAX requests (or GET if you want easier control). I use it, for example, when need to set a variable for another template and get the result from it.
This is now available with custom routes. http://www.couchcms.com/docs/custom-routes/
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
4 posts Page 1 of 1