PDA

View Full Version : .htaccess Question


.Darkman
10-17-2007, 02:42 PM
Hello Everybody,

I'm using MediaWiki and using .htaccess to make URLs better.

Using this code :
Code:

RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]

This redirects http://mysite.com/Page to http://mysite.com/index.php?title=Page

I want to achieve this for subpages also.
(i.e) I want to redirect http://mysite.com/Page/Sub to http://mysite.com/index.php?title=Page/Sub

How do i do this ? I tried few codes. But, they didn't work. Please help me.


Thanks,

airgle
11-11-2007, 03:07 PM
You will need to upload with ASCII mode, otherwise it won't work