WebmasterSite.net

htaccess problem

Version: 5.1.0 beta 12
URL: http://www.linkexchangeloung.com

PrintPrint


htaccess problem
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 392
Total Posts: 1287
quote post #1
Posted 08/24/09 - 9:03 AM:

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

Edited by babrees on 08/24/09 - 10:32 AM
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 08/25/09 - 12:26 AM:

Do you have "AddHandler application/x-httpd-php5 .php" entered in the "other .htaccess content" box?

Off topic: Will fix code tag shortly.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 392
Total Posts: 1287
quote post #3
Posted 08/25/09 - 1:22 AM:

Paul wrote:
Do you have "AddHandler application/x-httpd-php5 .php" entered in the "other .htaccess content" box?



Yes

Edited by babrees on 08/25/09 - 1:26 AM
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 08/25/09 - 8:28 PM:

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.
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #5
Posted 08/26/09 - 2:47 AM:

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.
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.