Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-24 23:22:05

grubdog
New Member
Registered: 2006-04-24
Posts: 8

Clean URL and .htaccess - not working for section links

Ok so I had some trouble earlier with my .htaccess file which I recoded to this:

<code> RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php

php_value register_globals off
</code>

Which also cleared up the register_globals issue I had too, so I was very happy and got on with learning. I decided to download a template and try that to begin with. Which seemed straight forward but just tried the section links and they dont work I get a 404 error now. So I dont understand what I am doing wrong I have selected messy URL’s and tried clean also but still nothing works. To the best of my knowledge this is still to do with .htaccess. But I have just run out of steam and need some help to resolve.
You can see the trouble here:

www.thegreyroom.f2s.com

Last edited by grubdog (2006-04-24 23:24:16)

Offline

#2 2006-04-25 09:00:22

grubdog
New Member
Registered: 2006-04-24
Posts: 8

Re: Clean URL and .htaccess - not working for section links

eek sorry everyone I just realised I didn’t include the whole script for the .htaccess file it should read:

<code> RewriteEngine On RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php

php_value register_globals off
</code>

I’ll take a further look.

Last edited by grubdog (2006-04-25 09:27:03)

Offline

#3 2006-04-25 09:25:51

grubdog
New Member
Registered: 2006-04-24
Posts: 8

Re: Clean URL and .htaccess - not working for section links

Still no luck anyway – the section links work with clean URL’s – but the articles do not – so when I link to them I get the text but no graphics – and it says 404 not found.

Here are my diagnostics:

<code>
Textpattern version: 4.0.3 (r1188)
last_update: 2006-04-23 18:44:13/2006-04-20 18:45:33
Document root: /web/sites/27/fourlegs/www.thegreyroom.f2s.com
$path_to_site: /web/sites/27/fourlegs/www.thegreyroom.f2s.com
Textpattern path: /web/sites/27/fourlegs/www.thegreyroom.f2s.com/textpattern
Permanent link mode: section_title
Temp folder: /web/sites/27/fourlegs/www.thegreyroom.f2s.com/textpattern/tmp
Site URL: thegreyroom.f2s.com
PHP version: 4.3.10
server_time: 2006-04-25 10:23:34
MySQL: 3.23.58
Locale: en_GB.UTF-8
Server: Apache/2.0.51 (Fedora)
Apache version: Apache/2.0.51 (Fedora)
php_sapi_mode: apache2handler
os_version: Linux 2.4.22-1.2199.4.legacy.nptl

.htaccess file contents:
———————————— RewriteEngine On RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php

php_value register_globals off

————————————
</code>

Offline

#4 2006-04-25 19:41:33

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Clean URL and .htaccess - not working for section links

Try this: change

RewriteBase /

to

#RewriteBase /

and

RewriteRule ^(.*) index.php

to

RewriteRule ^(.*) /index.php

?

Offline

Board footer

Powered by FluxBB