2010-11-04, 05:51:57
No magic :-D
Of course you have to edit the rewriterule to match the permalink structure -- it won't work if you don't.
.html
====
Permalink:
%parent%/%slug%.html or %slug%.html
.htaccess:
RewriteRule ([A-Za-z0-9-]+).html index.php?id=$1 [QSA,L]
.php
====
Permalink:
%parent%/%slug%.php or %slug%.php
.htaccess:
RewriteRule ([A-Za-z0-9-]+).php index.php?id=$1 [QSA,L]
Other extensions (besides ".htm") will probably not work (unless they're supported by the server)
Of course you have to edit the rewriterule to match the permalink structure -- it won't work if you don't.
.html
====
Permalink:
%parent%/%slug%.html or %slug%.html
.htaccess:
RewriteRule ([A-Za-z0-9-]+).html index.php?id=$1 [QSA,L]
.php
====
Permalink:
%parent%/%slug%.php or %slug%.php
.htaccess:
RewriteRule ([A-Za-z0-9-]+).php index.php?id=$1 [QSA,L]
Other extensions (besides ".htm") will probably not work (unless they're supported by the server)