php - Wordpress, custom mod_rewirte in .htaccess -


i want add own rules in .htaccess in wordpress.

i have this

http://page.com/materialy/?id_s=2&nazwa=stale-niestopowe

i want this:

http://page.com/materialy/s/2/stale-niestopowe

i tried plugins in wp dosent work, because in custom page use [insert_php]

how edit .htaccess make work?

please help!

if want manually, follow these steps.

open .htaccess file , edit it. add these lines

rewriteengine on rewriterule ^([^/]*)/([^/]*)\.html$ /materialy/?id_s=$1&nazwa=$2 [l] 

output:

http://www.page.com/2/stale-niestopowe.html


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -