Support » Fixing WordPress » Advanced Permalinks plugin issue with Pages

  • Resolved HD80


    Hi, I installed Advanced Permalinks to change my permalink from %postname% to /%year%/%monthnum%/%post_id%/ because my postname slug is getting too long. the redirection went well for categories by adding // infront of $this->add_filter (‘category_rewrite_rules’);

    Now I found my pages wasn’t directed properly. Can anyone help me?
    my website

    my .htaccess contains the following:

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* – [E=W3TC_ENC:_gzip]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} =””
    RewriteCond %{REQUEST_URI} \/$
    RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond “%{ENV:SUBDOMAIN_DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}” -f
    RewriteRule .* “/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}” [L]
    # END W3TC Page Cache core
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

Viewing 2 replies - 1 through 2 (of 2 total)
  • You don’t need advanced permalinks, just create using the instructions at

    and your structure is valid


    the plugin you’ve installed seems outdated might not be compatible with your current WP version. Maybe uninstalling it will solve the problem.

    I deactivated the plugin, empty all cache and everything seems to be normal now. Why did it gave me so much 404 errors at the beginning after I changed my permalink?
    Thanks for the advice, I guess I’ll delete that and keep my current permalink from now on to avoid any troubles.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advanced Permalinks plugin issue with Pages’ is closed to new replies.