Reputation: 103
I am working on WordPress project. On my server php 7.0 running and the WordPress 4.9.4 installed. The issue that I am facing is: I have created a template file and I am trying to print_r($_GET)
the query string variable from the url ?uid=213
then it returns Array() empty array.
When I tried the print_r statement on a different file on root folder then it works properly, but on functions.php or template file ( on WordPress pages ) its not working.
Can anybody tell me about this what is wrong with this?. Below is the my htaccess file code:
# BEGIN WordPress Options +FollowSymLinks DirectoryIndex index.php ErrorDocument 404 / RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . /index.php [L] # END WordPress
Upvotes: 0
Views: 2038
Reputation: 9342
check your nginx config nginx.conf
and your location should be like this.
# WORDPRESS
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
Upvotes: 0