Mod_Rewrite and SuPHP
I am trouble shooting a problem with my site. My affiliate links are processed through a mod_rewrite. The rule runs a php script which then forwards the visitor to the desired URL. After migrating to a shared VPS with Godaddy it no longer works. The link URL just shows in the browser address bar and the forwarding script does not work.
Here are the details of my set up.
CentOS & cPanel
php 5.5
suPHP is the handler being used
AllowOverride ALL is enabled (by default I believe)
RewriteEngine On (in .htaccess)
This is the rule in my .htaccess
This is what's in my go.php file
I figure it must be something with how the rewrite is being done, or how the script is being run, or how the header is being handled. Can anyone help with this. Hopefully I've given enough detail.
RewriteEngine On
RewriteRule ^take_me_to/([/_0-9a-zA-Z-]+)?$ includes/go.php?id=$1This is what's in my go.php file
I figure it must be something with how the rewrite is being done, or how the script is being run, or how the header is being handled. Can anyone help with this. Hopefully I've given enough detail.
-
Hello, As far as the server environment, are you using a different version of Apache, or a different PHP handler, compared to the previous server? Thank you. 0
Please sign in to leave a comment.
Comments
1 comment