wordpress - Is it possible to make PHP interpret a symbol as a $_GET in the URL? -
Sorry for the strange phrasing.
I am working on a project to upgrade a university website (this is not a school project, he has hired to hire the company).
We are working with WordPress, and the pages for professors are not a single page to appear directly, instead, they are shown in a model at the top of the main page.
To do this, I used in this model Customers did not like it much because their current system works with the user Finally, my question is: Can I explain PHP to something like this Is this my current code which is If you are on Apache for webserver, then you add it to your .htaccess File: $ _ GET , so when users
www.example.com/?prof=isaac-newton , then they see that page
www.example.com with a model above it,
www.example.com / Professors / isaac-newton in it.
www.example.com/~isaac-newton , and they want to keep this standard Are there.
~ isaac-newton URL
? Prof = isaac-newton ? how?
? Prof = works:
& lt ;? Php if (isset ($ _ GET) ['professor'])) {$ profit = $ _GET ['professor']; ? & Gt; & Lt; Script type = "text / javascript" & gt; $ ('#modal') Model ({'remote': 'http://www.example.com/professor/<?php echo $ prof ;? & gt; /'}); & Lt; / Script & gt; & Lt ;? Php}? & Gt;
RivetIngnin on Rev. Raul ^ \ ~ ([^ /] *) $ /? Prof = $ 1 [L]
Comments
Post a Comment