Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-12-24 01:38:44
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Textpattern paths not working?
I installed textpattern and everything seems to work except paths to the blog.
I cannot “view site” from admin section, and can only get to the blog homepage when I type index.php at the end of the path.
For instance the path to textpattern in the website is “domainname.com/textpattern” it should load, but it doesnt and instead I need to type “domainname.com/textpattern/index.php
needless to say the other links do not work and are broken links as well. Is this a database issue, hosting issue?
Offline
#2 2011-12-24 02:05:13
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
Ok, I deleted the .htacess file and not the homepage will load, but the links to the “about” and “articles” dont work, they are broken links. ANy ideas?
Offline
#3 2011-12-24 02:08:30
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
I installed textpattern and everything seemed to be fine. When i attempted to view the site I found that it was a broken link. I had to type /index.php to make the homepage come up. I then deleted the .htacess file and that seemed to fix the issue for the homepage, but not the links for both “about” and “ articles” dont work. ANy ideas?
Offline
Re: Textpattern paths not working?
The .htaccess must be present, you shouldn’t delete it. It may have fixed something, but it will certainly break other stuff.
First, restore the .htaccess file, and then, try adding this line to the top of it:
DirectoryIndex index.php
Offline
#5 2011-12-24 02:13:34
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
I had that in the .htaccess file and the homepage wouldnt load.
Offline
#6 2011-12-24 02:14:32
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
#DirectoryIndex index.php
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
(edited to add format – maniqui)
Last edited by maniqui (2011-12-24 02:42:52)
Offline
Re: Textpattern paths not working?
Remove the comment (#
) from the first line.
Offline
#8 2011-12-24 02:33:05
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
I listed only:
DirectoryIndex index.php
and it still isnt working. strange that i remove the entire .htaccess file and it works.
Offline
#9 2011-12-24 02:33:47
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
I understand that removing the .htaccess file disables the other links.
Offline
Re: Textpattern paths not working?
What’s your current .htaccess? It should look like this:
DirectoryIndex index.php
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
But if that one doesn’t work yet, then we have to keep looking. Anything meaningful in the “Admin -> Diagnostics” tab?
Sorry, edited to fix format.
Last edited by maniqui (2011-12-24 02:50:11)
Offline
#11 2011-12-24 02:51:40
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
DirectoryIndex index.php
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
I’ll have to post it there as well
Offline
#12 2011-12-24 03:04:24
- Defmetalhead
- Member
- Registered: 2011-12-12
- Posts: 24
Re: Textpattern paths not working?
Ok Here is what I have in the .htaccess file
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
Offline