You could do redirects in htaccess. Just Google htaccess redirect to learn how
Thread Starter
gs_s
(@gs_s)
I have researched how I can use .htaccess rules to achieve my need. However, most of pages I found only tell how to redirect or how to ban some IPs, not how to disable certain urls.
I thought about redirecting to a 404 page but Auto-Pagerize also read 404 pages if the urls exist. So it doesn’t work. I need to block the WordPress default queried urls permanently.
Would you mind giving some simple examples?
Haven’t tested but something like:
RewriteCond %{QUERY_STRING} ^page_id [NC]
RewriteRule ^/page.php$ http://example.com/index.php [R=301,L]
Thread Starter
gs_s
(@gs_s)
Thanks again.
Based on your code, I tried this one.
RewriteCond %{QUERY_STRING} ^page_id [NC]
RewriteRule .* - [F,L]
When I directly access to the queried urls, the browser responses the page is forbidden.
However, AutoPagerize just reads those pages. I don’t get what’s going on inside the firefox plugin. It seems I should ask the developper of AutoPagerize.
Thanks anyways.
Thread Starter
gs_s
(@gs_s)
Also I found a useful plugin called redirection which is configurable to restrict accesses to queried urls. But like the .htaccess method mentioned in the above post, even when I redirect /?page_id=(.*?) to a 404 Error page, still AutoPagerize reads them despite a direct access gets a 404 page.
I’ll close this topic as resolved since the initial question was answered. I may post a new thread regarding Autopagerize. Thank you so much.