WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Advanced Permalinks plugin issue with Pages (3 posts)

  1. HD80
    Member
    Posted 1 year ago #

    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 http://ps4evolution.com

    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
    </IfModule>
    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
    </IfModule>
    </IfModule>
    # 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]
    </IfModule>
    # 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]
    </IfModule>

    # END WordPress

  2. David Choi
    Member
    Posted 1 year ago #

    You don't need advanced permalinks, just create using the instructions at

    http://codex.wordpress.org/Using_Permalinks

    and your structure is valid

    /%year%/%monthnum%/%post_id%/

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

  3. HD80
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic