Mod Rewrite causing problems
Hi guys,
i had somebody setup a mod rewrite on my website, i thought it was all working ok, but i have now noticed that a feature of our site doesnt work properly on the pages where the mod rewrite takes place. if you can go to view website here and click Go below the 3 dropdown boxes you will notice that i get a blank page come up, the rest of the site works perfectly.
can anybody give me any advice, or is willing to fix it for me and ill pay you via paypal immediately. thanks
Kind Regards,
Andy MacDonald
timjpriebe posted this at 12:32 — 12th September 2006.
He has: 2,667 posts
Joined: Dec 2004
I assume that the mod rewrite is in your htaccess file. Can you post the contents of your htaccess file?
swiftmed posted this at 16:19 — 12th September 2006.
He has: 59 posts
Joined: Mar 2006
hey mate,
yes it is in a htaccess file, the contents are as follows:
AddType application/x-httpd-php .php .html
Options +FollowSymLinks
RewriteEngine on
RewriteRule boutique/(.*)/(.*)/(.*)$ /boutique.php?sub1menu=$1&sub2menu=$2&sub3menu=$3&Submit=Go
Kind Regards,
Andy MacDonald
Busy posted this at 21:47 — 12th September 2006.
He has: 6,151 posts
Joined: May 2001
try
RewriteRule ^boutique/(.*)/(.*)/(.*)/(.*) boutique.php?sub1menu=$1&sub2menu=$2&sub3menu=$3&Submit=Go [L]
above should be on one line if it isn't
swiftmed posted this at 12:59 — 13th September 2006.
He has: 59 posts
Joined: Mar 2006
Hi,
thanks for your reply busy. i tried it and when clicking on the go button i am taken to a 404 not found error....any ideas mate?
thanks
Busy posted this at 21:04 — 13th September 2006.
He has: 6,151 posts
Joined: May 2001
try this
RewriteRule ^boutique/$1/$2/$3/Go boutique.php?sub1menu=$1&sub2menu=$2&sub3menu=$3&Submit=Go [L]
if it doesn't work, add .php after boutique
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.