MediaWiki short urls

Status
Not open for further replies.

cowctcat

New Member
Messages
401
Reaction score
0
Points
0
Hey guys i was just wondering if it was posible to do something for me.

I set up media wiki and I am trying to get short urls eg. /wiki/cow instead of /wiki/index.php?title=cow

i have tried setting this up using htaccess but it just crashed my whole site so i was wondering if you could set somthing up in the confug file?

The url for the instructions is: http://www.mediawiki.org/wiki/Manual:Short_URL
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
Add the following lines to your .htaccess

Code:
Options +FollowSymLinks

RewriteEngine On

# If it's not an existing file,
RewriteCond %{SCRIPT_FILENAME} !-f
# and it's not an existing directory
RewriteCond %{SCRIPT_FILENAME} !-d
# rewrite.
RewriteRule ^([^/]+)/?$ /index.php?title=$1 [QSA,L]
 

cowctcat

New Member
Messages
401
Reaction score
0
Points
0
thanks i got it to work the other method for htaccess just needed the options +FollowSymLinks
 
Status
Not open for further replies.
Top