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 $ _ GET , so when users www.example.com/?prof=isaac-newton , then they see that page www.example.com with a model above it,

in this model www.example.com / Professors / isaac-newton in it.

Customers did not like it much because their current system works with the user www.example.com/~isaac-newton , and they want to keep this standard Are there.

Finally, my question is:

Can I explain PHP to something like this ~ isaac-newton URL ? Prof = isaac-newton ? how?

Is this my current code which is ? 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;    

If you are on Apache for webserver, then you add it to your .htaccess File:

  RivetIngnin on Rev. Raul ^ \ ~ ([^ /] *) $ /? Prof = $ 1 [L]    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -