Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-04-01 11:44:32
- Mackie
- New Member
- From: Hungary
- Registered: 2006-04-01
- Posts: 4
ModRewrite and .htaccess
I have a website hosted with 1and1.com that I would like to switch to TextPattern. ModRewrite isn’t enabled on the server by default, but according to the host, editing the .htaccess file can change this.
I put the following in:
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule>#php_value register_globals 0
And it doesn’t work, “clean URL’s” 404. What to do?
Offline
Re: ModRewrite and .htaccess
<a href=“http://textpattern.com/faq/66/404-error-when-linking-to-article-pages”>FAQ</a>.
It’s good that you got ModRewrite working, but that might not be enough. Including a rewrite rule (see the FAQ entry) should take care of the 404.
Offline
#3 2006-04-01 17:17:05
- Mackie
- New Member
- From: Hungary
- Registered: 2006-04-01
- Posts: 4
Re: ModRewrite and .htaccess
I’ve tried all of those, with no luck. I am getting a 404 error – it wouldn’t be a problem if I could use ?q=something as a permalink, like with my old CMS, but using ?q=ID doesn’t cut the mustard.
Offline
#4 2006-04-01 17:38:34
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: ModRewrite and .htaccess
Did you look here for a 1and1 specific solution?
Offline
#5 2006-04-03 16:23:17
- Mackie
- New Member
- From: Hungary
- Registered: 2006-04-01
- Posts: 4
Re: ModRewrite and .htaccess
Yes. None worked.
Offline
#6 2006-05-17 02:09:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: ModRewrite and .htaccess
Is this still a problem?
Offline
Pages: 1