-
December 2nd, 2014, 01:36 AM
#1
.htaccess and mediawiki not working... Help
I have a wiki up and running at example.com. when you go to the page the links change in the URL to /index.php/Main_Page
I do not want the parts after / for the main page. Also want the index.php out
I hae this currently in my .htaccess
Code:
rewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ wiki/index.php?title=$1 [PT,L,QSA]
RewriteRule ^/*$ wiki/index.php [L,QSA]
RewriteRule ^$ wiki/index.php [L,QSA]
and this in my Localsettings.
Code:
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
Where is my error? I cannot fig it out ... I followed the mediawiki to the T.
New to PHP and MySql. Started looking at scripts about a week ago. So far have very little understanding of it. So please be easy with me if I ask a stupid question.
www.ethans-space.com
-
December 2nd, 2014, 07:06 PM
#2
Re: .htaccess and mediawiki not working... Help
New to PHP and MySql. Started looking at scripts about a week ago. So far have very little understanding of it. So please be easy with me if I ask a stupid question.
www.ethans-space.com
-
December 3rd, 2014, 08:00 PM
#3
Re: .htaccess and mediawiki not working... Help
In a forum that gets less than 5 posts a month, it's not uncommon to not receive a reply right away. Patience is a virtue!
Unless I'm misunderstanding something, this should do the trick for you. According to your example .htaccess is 1 folder above the folder wiki. So I continued that. If the .htaccess file is in the same folder as the index.php, then you need to remove the wiki/ from the example.
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) wiki/index.php?title=$1 [QSA]
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|