routes_in = [('/titleofpage <http://www.mydomain.com/titleofpage>','
/Controler/Function?id=34 <http://www.mydomain.com/Controler/Function?id=34>
')]


On Thursday, 14 March 2013 12:45:40 UTC-5, BlueShadow wrote:
>
> Hi,
> I was wondering if it is possible to change the dynamic URLs to static 
> ones. eg www.mydomain.com/Controler/Function?id=34 to 
> www.mydomain.com/titleofpage
> So far I removed the controler by setting it in the routes.py as default 
> controler.
> I know that you could do it manually by using the .htaccess file with mod 
> rewrite.
> In my sample domain lets say the functions name would be viewArticle and 
> the parameter id=xx the id number of the article. lets say the title of the 
> article is "web2py - An awesome framework"
> I would love to have this URL 
> www.mydomain.com/viewArticle_web2py_An_awesome_framework
> any ideas other than mine to write to the htaccess file every time a new 
> article is written? Well I know one could do it by python code.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to