datagrid with URL rewriting and routes

Talk about installation process and problems

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

shardest98
Newbie
Newbie
Posts: 2
Joined: Sep 26th, '17, 20:58

datagrid with URL rewriting and routes

Postby shardest98 » Sep 26th, '17, 21:11

Hello,
I’m using the latest PHP 7.1 and Apache using URL rewriting and routes on a Windows 10 machine. My test datagrid works correctly in a web app without URL rewriting and routes, the datagrid displays and all the links work. It doesn’t work in my other web app with URL rewriting and routes. The datagrid page with the data shows correctly, but the links and buttons don’t work except for the “refresh page” and “hide search” icon. I'm trying to figure out what to change to bypass routing for the javascript links on the datagrid page. Thank you.

administrator
Site Admin
Site Admin
Posts: 5992
Joined: Jan 7th, '09, 23:18
Contact:

Re: datagrid with URL rewriting and routes

Postby administrator » Sep 26th, '17, 21:13

How exactly they don't work?
Do you see mepty page or something else?

shardest98
Newbie
Newbie
Posts: 2
Joined: Sep 26th, '17, 20:58

Re: datagrid with URL rewriting and routes

Postby shardest98 » Sep 26th, '17, 21:22

For example, when I click on the "Edit" link, it does display "javascript:abc__doPostBack("edit"...) when I hover, but when I click - since I am re-routing all HTTP requests back to index.php because of this below - the link goes to my routing code instead of running the DataGrid javascript code:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

I played around with trying to add something like this to my Apache .htaccess file, but this didn't work below. I'm still thinking of other things to try.
RewriteRule ^((?!abc__doPostBack).)*$ index.php?url=$1 [QSA,L]


Return to “Installation”