Getting the ReWrite working
3 posts
• Page 1 of 1
Getting the ReWrite working
My website is on a Windows sever, running Helm.
URL ReWriting extention has been installed, and the sever provider says it seems to be installed correctly.
Once installed it lets me view the documentation of 'Helicon Tech ISAPI_Rewrite v3 ' so I guess I have Version 3 installed.
My .htaccess file contains
RewriteEngine on
RewriteBase /
RewriteRule ^products/[^?/]*_(\d+)\.asp productpage.asp?productID=$1 [QSA]
however when I access http://www.cameras-4u.co.uk/products/test_101.asp I get a 404 eror
I was expecting it to redirect me to productpage.asp?productID=101
Is there a simple test I can run to prove some part of URL rewrite is working?
Thanks
Dan.
URL ReWriting extention has been installed, and the sever provider says it seems to be installed correctly.
Once installed it lets me view the documentation of 'Helicon Tech ISAPI_Rewrite v3 ' so I guess I have Version 3 installed.
My .htaccess file contains
RewriteEngine on
RewriteBase /
RewriteRule ^products/[^?/]*_(\d+)\.asp productpage.asp?productID=$1 [QSA]
however when I access http://www.cameras-4u.co.uk/products/test_101.asp I get a 404 eror
I was expecting it to redirect me to productpage.asp?productID=101
Is there a simple test I can run to prove some part of URL rewrite is working?
Thanks
Dan.
Re: Getting the ReWrite working
With this rewrite rule
RewriteBase /
RewriteRule ^products/[^?/]*_(\d+)\.htm productpage.asp?productID=$1
I get this in the IIS Log
2012-06-26 08:26:46 GET /products/test_127.htm - 80 - HTTP/1.1 Mozilla/5.0+(Windows+NT+5.1;+rv:12.0)+Gecko/20100101+Firefox/12.0 - www.cameras-4u.co.uk 404
So I get a 404 error, I know productpage.asp exists. It would appear the URLReWrite isn't working at all, or its not reading the .htaccess file
RewriteBase /
RewriteRule ^products/[^?/]*_(\d+)\.htm productpage.asp?productID=$1
I get this in the IIS Log
2012-06-26 08:26:46 GET /products/test_127.htm - 80 - HTTP/1.1 Mozilla/5.0+(Windows+NT+5.1;+rv:12.0)+Gecko/20100101+Firefox/12.0 - www.cameras-4u.co.uk 404
So I get a 404 error, I know productpage.asp exists. It would appear the URLReWrite isn't working at all, or its not reading the .htaccess file
Re: Getting the ReWrite working
I have contacted the hosting company again, they has tinkered with something, mainly permissions I believe so I could get the log files working. I've not got the log files working, but the redirect is working perfectly. So now I can work though your examples.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 24 guests