| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,145 posts
Gave thanks: 3
Thanked 20 times
|
.htaccess, with PHP5
So Things started going all wacky when my shared account got upgraded to PHP5. I've gotten most of everything fixed, but one weird issue-
I have a .htaccess file with this: Code:
<Files article> SetHandler application/x-httpd-php </Files>
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] |
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,145 posts
Gave thanks: 3
Thanked 20 times
|
Ok.. currently I've got urls like this
fredrickville.com/article/4/13/Title_of_Article But the actual url is this: fredrickville.com/article?1=4&2=13&3=Title_of_Article How do I do this with mod_rewrite ?
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] |
|
|
|
|
|
#4 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,176 posts
Gave thanks: 18
Thanked 85 times
|
Hmmm... this might work...
Code:
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^article/([0-9]*)/([0-9]*)/([A-Za-z_0-9\)\(\-]*)$ article?1=$1&2=$2&3=$3 [L] </IfModule>
__________________
|
|
|
|
|
|
#5 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,145 posts
Gave thanks: 3
Thanked 20 times
|
That will require redoing a few scripts, I think at the moment- Any ideas on why my handler doesn't work anymore? Is there a new location for php now that it's 5? Is there a quick fix?
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] |
|
|
|
|
|
#6 (permalink) |
|
Surpass Fan
Seasoned Poster
Joined in Oct 2003
Lives in Tempe, AZ
Hosted on dime31
72 posts
Gave thanks: 0
Thanked 0 times
|
Try using application/x-httpd-php5 instead of application/x-httpd-php
__________________
Domain: BCIhosting.com Server: D31 Domain: BCIhosting2.com Server: Pass7 Domain: BCIhosting.org Server: Saprus |
|
|
|
|
|
#7 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,145 posts
Gave thanks: 3
Thanked 20 times
|
and that little peice of magic is what I was looking for. Thanks!
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] |
|
|
|