Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change page urls to include .html
#11
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)
Reply


Messages In This Thread
Change page urls to include .html - by hitankar - 2010-03-17, 18:34:41
Change page urls to include .html - by Carlos - 2010-03-18, 04:00:27
Change page urls to include .html - by yojoe - 2010-11-03, 10:45:01
Change page urls to include .html - by Carlos - 2010-11-03, 16:48:01
Change page urls to include .html - by yojoe - 2010-11-03, 16:55:40
Change page urls to include .html - by Carlos - 2010-11-03, 17:54:34
Change page urls to include .html - by yojoe - 2010-11-03, 23:12:41
Change page urls to include .html - by Carlos - 2010-11-04, 04:27:13
Change page urls to include .html - by yojoe - 2010-11-04, 05:16:51
Change page urls to include .html - by Carlos - 2010-11-04, 05:51:57
Change page urls to include .html - by yojoe - 2010-11-04, 08:12:01



Users browsing this thread: 1 Guest(s)