I am developing quiz section for my wordpress site. I have W3 total cache installed on my site. I want to put quiz on
http://www.example.com/quiz/seo-friendly-title/id
and rewrite htaccess to redirect the url to
http://www.example.com/quiz?title=seo-friendly-title&quiz-id=id
The quiz section is developed as wordpress template and a blank page is made using this template.
This is .htaccess I wrote.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^quiz/([\w\d\-]+)/(\d]+)$ quiz?title=$1&quiz-id=$2 [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Any form of help would be appreciated!
You can try this:
Did you go to settings and permalinks? if yes and its not what you want have a look here
how to hide a page from being seen in wordpress backend and frontend