enabling permalinks breaks URL parameter passing
-
When I set the permalink to default, URLs like this one work fine:
www.mysite.com/test3/?page_id=1800&cert_number=43&cert_id=191
When I enable permalinks for page name, URL’s such as this one fails:
www.mysite.com/test3/certificate/&cert_number=43&cert_id=191
Also, with permalink pagename enabled, omitting the parameters will load the proper page but without the correct data.
www.mysite.com/test3/certificate/
All of the page links in the web site use URL’s built with code similar to this:
$href = get_permalink(get_option('savc_certificate_page_id')) . '&cert_number=' . $cert['cert_number'] . '&cert_id=' . $cert_id;
I have the following in .htaccess:
<Files .htaccess,.svn> order allow,deny deny from all </Files> Options +FollowSymlinks # BEGIN WordPress # END WordPress
I have read many posts here and elsewhere that say either should work, but it doesn’t for me. I have also read some clever ways to tell WordPress about the URL parameters, but add_filter for query vars does not work when placed in the functions.php in the theme. I am using a child theme.
I would prefer to have the pretty URLs.
- The topic ‘enabling permalinks breaks URL parameter passing’ is closed to new replies.