Webmastersite.net
Register Log In

htaccess problem

Comments on htaccess problem

babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 24, 2009 - 10: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
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 25, 2009 - 1: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

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 25, 2009 - 2:22 AM:

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



Yes
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 25, 2009 - 9: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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 26, 2009 - 3: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
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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