Forum Moderators: phranque

Message Too Old, No Replies

Default home page and Google site:

         

wheelie34

6:34 pm on Jan 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Guys

I have been developing a wiki on the mediawiki platform for the past 13 months, from the start everything was taken care of, there's just one thing that has been bugging me for a while now and I can't find anything on the mediawiki forum.

By default the home page 301's to

www.example.com/First_Title (checked with live headers, it is a 301)

First Title being the first content that you MUST add, I run the wiki from root as that's what the domain is for, a wiki, I make sure every person who links to it does link direct to

www.example.com/First_Title

When doing link: in Google, they take root/ as the first entry and omit First_Title

First question is, is this a dupe problem, second question, heres the content of my htaccess

Options +FollowSymlinks All -Indexes
RewriteEngine On

RewriteCond %{HTTP_HOST} ^example.com
RewriteRule ^(.*)$ http://www.example.com/$1 [r=301,L]

# Don't rewrite requests for files in MediaWiki subdirectories,
# MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt
RewriteCond %{REQUEST_URI} !^/(stylesheets¦images¦skins)/
RewriteCond %{REQUEST_URI} !^/(redirect¦texvc¦index).php
RewriteCond %{REQUEST_URI} !^/error/(40(1¦3¦4)¦500).html
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/cgi-bin/

# Rewrite [wiki.domain.tld...] properly, this is the main rule
RewriteRule ^(.*)$ /index.php/?title=$1 [L,QSA]

As there is no 301 mentioned there, how else does the mediawiki software redirect it? or is it the line with redirect in it? although to me that is telling it not to rewrite the admin pages which run of the index.php file, or am I wrong.

As for Google, will they ever list it correctly, and is it a dupe problem?

Thanks

g1smd

8:23 pm on Jan 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't like the "/" root to redirect to an internal URL. That just seems wrong.

However, as long as it is a 301 redirect and the internal "Home" links all point to the same internal URL, then there should not be a problem.

I don't like that aspect of Wiki software, but it seems that they all work that way.

I'm currently pulling DokuWiki apart to see if it can be modified to not do that.

I may be some time.

.

As for how it is done? I guess the PHP script returns the HTTP HEADER using a HEADER instruction when the requested URL doesn't have any page name included.