Help Getting Wikipedia URLs Working

Discuss practical ways rearrange URLs using mod_rewrite.

Help Getting Wikipedia URLs Working

Postby Deceth » Thu Jun 26, 2008 5:11 am

Hey,

I have a very strange problem that I can't seem to figure out.

I have Wikipedia installed and even working... just not exactly how I would like it to:

http://w.looble.com will load my Wikipedia page.

I'd actually like the URL to be:

http://wiki.looble.com

However, when I change to use the other subdomain, my page loads white/blank...!

This is my .htaccess file

Code: Select all
Options +FollowSymLinks

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*)$ index.php5?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ wiki/ [L,QSA]
RewriteRule ^/*$ wiki/ [L,QSA]


Any ideas why it would work for one subdomain but not the other? This makes no sense to me!
Deceth
 
Posts: 5
Joined: Tue Jun 24, 2008 9:37 am

Postby richardk » Thu Jun 26, 2008 1:26 pm

I get a 500 Internal Server Error for the wiki sub domain.

What does your error log say is causing the 500 error?
If you remove the mod_rewrite does the 500 error stop?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 39 guests

cron