Generate url by javascript
Check if mod_rewrite enabled