Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th November 2006, 05:02 PM
jimshock Offline
Registered User
 
Join Date: Oct 2006
Posts: 14
can't get my main Mediawiki url to redirect to the wiki Main_Page

I've set my main url as: http://wiki.mydomain.com -- If I type this Url in, I just get an "Index / " page that shows a directory. But if I type: http://wiki.mydomain.com/wiki/index.php/Main_Page, the main page comes up fine and the wiki works fine.
All I need is for http://wiki.mydomain.com to point to http://wiki.mydomain.com/wiki/index.php/Main_Page. Can someone please help me?
Reply With Quote
  #2  
Old 16th November 2006, 05:36 PM
kettu Offline
Registered User
 
Join Date: Sep 2006
Posts: 48
Try replacing the relevant configuration lines with something like:
Code:
RewriteCond %{HTTP_HOST} wiki.mydomain.com$
RewriteCond %{REQUEST_URI} !wiki/
RewriteRule ^(.*)$ wiki/$1
Reply With Quote
  #3  
Old 16th November 2006, 05:45 PM
jimshock Offline
Registered User
 
Join Date: Oct 2006
Posts: 14
Which file do I add the code to? I tried going /var/www/html/.htaccess and adding the lines under RewriteEngine on, no luck
Reply With Quote
  #4  
Old 16th November 2006, 05:54 PM
kettu Offline
Registered User
 
Join Date: Sep 2006
Posts: 48
Try adding the following after RewriteEngine On:
Code:
RewriteBase /
Reply With Quote
  #5  
Old 16th November 2006, 07:08 PM
jimshock Offline
Registered User
 
Join Date: Oct 2006
Posts: 14
...still no luck
Reply With Quote
  #6  
Old 16th November 2006, 09:08 PM
kettu Offline
Registered User
 
Join Date: Sep 2006
Posts: 48
In httpd.conf, what AllowOverride value do you have for the DocumentRoot Directory? If it is None, it will not execute rewrite directives.
Reply With Quote
  #7  
Old 16th November 2006, 09:42 PM
jimshock Offline
Registered User
 
Join Date: Oct 2006
Posts: 14
Got it . Needed to add an index.html file in /var/www/html with this line:

<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://wiki.mydomain.com/wiki/index.php/Main_Page">

However, you were right, my AllowOverride was set to None. Would utilizing the rewrite directive be a better way?
Reply With Quote
  #8  
Old 17th November 2006, 04:45 AM
kettu Offline
Registered User
 
Join Date: Sep 2006
Posts: 48
The advantage of the rewrite directive is that you can have more then one sub-domain. With your current implementation both www.mydomain.com and wiki.mydomain.com will redirect to the wiki.
Reply With Quote
Reply

Tags
main, mainpage, mediawiki, redirect, url, wiki

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaWiki problem shallowz Using Fedora 9 9th April 2007 11:41 PM
can't get my main Mediawiki url to redirect to the wiki Main_Page jimshock Using Fedora 0 16th November 2006 03:29 PM
need help with installing MediaWiki.... mkj4 Using Fedora 0 7th November 2006 11:01 AM
MediaWiki -upgrade? djrogi Using Fedora 3 13th September 2006 11:14 PM
MediaWiki 1,5.8 in FC 5 MichiGreat Installation and Live Media 2 29th March 2006 04:30 PM


Current GMT-time: 04:58 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat