CyberPanel Community

Wordpress permal link

7 replies
Cy
CyberPanel #2

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.

in
insha #3

Thanks, this should be included in default install. Just a tip

Ro
RoldanLT #4

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

us
usmannasir #5
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.

Ro
RoldanLT #6

But it didn’t work for me, using 1.7 RC installation.
I use /%postname%/ permalinks.

Ro
RoldanLT #7

Other than home page returns 404 without forward slash.

Ro
RoldanLT #8

Ops, I just open my rewrite rules again now and it has no forward backslash.
Still works fine.

Thanks!

Sign in to reply