BLOG:CMS :: Support Forum

Support Forum for BLOG:CMS

You are not logged in.

#1 20.12.2005 17:04

BurningDog
newbie...
From: Johannesburg, South Africa
Registered: 20.12.2005
Posts: 1
Website

Getting FancyURL's to work

This isn't a question, it's a mini HOWTO on getting FancyURL's to work in a rather particular case. If you've tried everything else and they still don't work, this might help.

Summary:
Change

Code:

ForceType application/x-httpd-php

to

Code:

SetHandler application/x-httpd-php

in the .htaccess.

The normal process for configuring FancyURL's (Radek's instructions):
- your webhosting MUST support .htaccess and FilesMatch
- copy files from /extra/fancyurls/ to root dir
- modify fancuurls.config.php file (set up your domain URL)
- switch to FANCY URLs in Global Settings

My problem:
I set up BLOG:CMS on my OS X iBook and enabled FancyURL's. It worked fine. I uploaded to website and everything worked - except for FancyURL's. The odd thing is, each time I tried to access a FancyURL (like /archive) I got a "500 Internal Server error" but the error didn't show up in my Apache error logs.

After hours of frustration, trawling through the support forums and confirming that I'd done everything perfectly right, I discovered my webhost uses a little extra program called PHPSuexec which runs on top of Apache. I don't know exactly what it does, suffice for some cool security stuff, but it stuffs up the normal way of getting FancyURL's working.

Luckily, the fix is really simple - here's my new code:

Code:

ErrorDocument 404 /error.html
<FilesMatch "^archive|archives|blog|category|extra|feed|item|member$">
    SetHandler application/x-httpd-php
</FilesMatch>

This works and is live - check out my site at http://www.futurechurch.co.za.

Offline

 

#2 20.12.2005 18:27

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: Getting FancyURL's to work

Thanks for sharing this tip :-)


--= BLOG:CMS developer =--

Offline

 

#3 08.06.2006 08:23

Loco.M
BLOG:CMS Junior
From: kansas
Registered: 07.06.2006
Posts: 10
Website

Re: Getting FancyURL's to work

cheers, the first fix worked for me smile

thank you


Free Arcade Games | PR5 Directory - Submit your site

Offline

 

#4 06.08.2006 15:04

hermes
BLOG:CMS Senior
From: Spain
Registered: 14.06.2004
Posts: 98

Re: Getting FancyURL's to work

Great BurningDog !

My FancyURL's work now whith this help.


Regards, hermes :: I LOVE BLOG:CMS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

TOPlist