can anyone help me please

Discuss practical ways rearrange URLs using mod_rewrite.

can anyone help me please

Postby hiksa » Mon Nov 03, 2008 1:17 pm

hi,

I have following structure: mySite.com/index.php?page=1.0.0

how can I show to my users the next one:

mySite.com/page-1.html

10x a lot
hiksa
 
Posts: 1
Joined: Mon Nov 03, 2008 1:07 pm

Postby richardk » Mon Nov 03, 2008 3:11 pm

Try
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^page-([0-9]+)\.html$ /index.php?page=$1.0.0 [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 5 guests

cron