Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-04 22:34:28

The Safety Inspector
Member
From: London, UK
Registered: 2004-06-22
Posts: 32
Website

Clean URLS in a subdirectory

Hi, I’m currently working on developing a site with Textpattern (4.01), and I would really like clean URLS. However, I’m developing it in a subdirectory of another domain, so perhaps this is the problem.

It’s hosted on Textdrive. dosdev.familycreative.com is the url, and it actually sits in the directory www.familycreative.com/dosdev

If you click on any of those sub menu items such as “Musical History,” it gives a Not Found error even though it works in messy mode.

I believe I have the correct .htaccess file, it’s:

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

Any suggestions would be highly appreciated! Thanks!

Last edited by The Safety Inspector (2005-11-04 22:35:01)

Offline

#2 2005-11-04 22:38:10

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Clean URLS in a subdirectory

Try these suggestions:
http://textpattern.com/weblog/20/clean-urls-on-different-hosts

Also please post your diagnostics. And I would recommend upgrading to 4.0.2 (independant of this issue).

Offline

#3 2005-11-04 23:45:04

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: Clean URLS in a subdirectory

You need a RewriteBase directive in your .htaccess file.

-Kurt

Last edited by KurtRaschke (2005-11-04 23:45:23)


kurt@kurtraschke.com

Offline

#4 2005-11-05 22:33:39

The Safety Inspector
Member
From: London, UK
Registered: 2004-06-22
Posts: 32
Website

Re: Clean URLS in a subdirectory

Thanks, the RewriteBase seems to have done the trick!

Offline

Board footer

Powered by FluxBB