Every time i try a bad php query (pointing a non-existent page or post) like /?p=1000 or /?page_id=1000 (id 1000 doesn't exist) I get a normal page with blank space on the post container, no 404 error. I tried changing permalinks to default and still the same.
Other non-thematic themes work perfectly.
ThemeShaper Forums » Thematic
got non-existent pages with custom permalink
(3 posts)-
Posted 1 year ago #
-
Hi wariotx,
What are the contents of your .htaccess file?
-Gene
Posted 1 year ago # -
This is the content of the .htaccess file:
# BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / AddDefaultCharset UTF-8 RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$ RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz -f RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz [L] RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$ RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html -f RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html [L] </IfModule> # END WPSuperCache # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressIt works well with other themes.
ThanksEDIT: if i try a wrong link with the custom permalink structure (like /asfbjasgfa) it returns the 404 error code.
Posted 1 year ago #
Reply
You must log in to post.