Wordpress permal link

How to change permal link in Wordpress url to not include www.domain.com/index.php/some-page just clear url www.domain.com/some-page ?

Comments


  • RewriteRule ^/index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    Use these rewrite rules and set permalink from WordPress dashboard.
  • Thanks, this should be included in default install. Just a tip
  • Latest RC 1.7 has bug?
    Rewrite rules was missing /.

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]


    # END WordPress
  • RoldanLT said:

    Latest RC 1.7 has bug?
    Rewrite rules was missing /.

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]


    # END WordPress
    I've mentioned in the thread, that you don't need forward slash from 1.7 onwards, you can simply copy Apache rules and they will work out of the box.
  • But it didn't work for me, using 1.7 RC installation.
    I use /%postname%/ permalinks.
  • Other than home page returns 404 without forward slash.
  • Ops, I just open my rewrite rules again now and it has no forward backslash.
    Still works fine.

    Thanks!
Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!