on my new server I have to add "AddHandler application/x-httpd-php5 .php" to the .htaccess file to activate php5. This is usually no problem and new install and site works fine.
That is until I try to activate the rewrite in seo. I then simply get the error message:
[-[-[codebox0]-]-]
[edit] hmm, well that didn't come out right did it!
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/linkexch/public_html/classes/generic.php on line 5
Maybe it needs that line to be in a specific location, at the top. I don't want to clutter the page with confusing text asking for different content to put in different positions in the file, but I can add a tweak.
Do .htaccesses cascade? If you put your handler in the directory above WSN, I believe it'll be inherited by subdirectories and should get along with WSN's .htaccess. Though I'm not sure they can be used above the web root.
Comments on htaccess problem
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
on my new server I have to add "AddHandler application/x-httpd-php5 .php" to the .htaccess file to activate php5. This is usually no problem and new install and site works fine.
That is until I try to activate the rewrite in seo. I then simply get the error message:
[-[-[codebox0]-]-]
[edit] hmm, well that didn't come out right did it!
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/linkexch/public_html/classes/generic.php on line 5
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Do you have "AddHandler application/x-httpd-php5 .php" entered in the "other .htaccess content" box?
Off topic: Will fix code tag shortly.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Do you have "AddHandler application/x-httpd-php5 .php" entered in the "other .htaccess content" box?
Yes
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Maybe it needs that line to be in a specific location, at the top. I don't want to clutter the page with confusing text asking for different content to put in different positions in the file, but I can add a tweak.
Do .htaccesses cascade? If you put your handler in the directory above WSN, I believe it'll be inherited by subdirectories and should get along with WSN's .htaccess. Though I'm not sure they can be used above the web root.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The htaccesstop tweak can accept content to place at the top of the file in beta 13. It'll show up in the tweaks editor.