View Full Version : mod_rewrite - errors to catch?
Bonito
12-13-2005, 09:24 PM
I asked my hosting company if they would enable mod_rewrite and explained that I'm currently getting 404 error pages. They said they would enable it for errors, but have now asked me the followimg: Please can you supply what your error pages are called and what errors you want to catch?
Will someone give me guidence for a reply please as I'm not sure what they mean.
Thanks
Bonito
Ap0s7le
12-14-2005, 04:51 AM
They want to know if you have some custom error pages setup, and if so what are their names and for what errors they are for.
Example response.
For 404 errors, direct it to /public_html/errors/404.html
500, direct to /public_html/errors/500.html
Let me know if you have anymore questions, or if I can help you in anyway consider PM'ing me direct.
-Casey
Bonito
12-14-2005, 09:32 AM
Thanks for the quick reply Ap0s7le
I don't have any custom error pages - I just rely on the default. I guess 404's need catching but wouldn't know if there are other defaults I need to catch.
Should I tell them that all I need to catch is the 404 default error pages or will they want more detail.
Cheers
Bonito
Ap0s7le
12-14-2005, 08:20 PM
Hey there,
Do you have the .htaccess file uploaded to the server?
-Casey
Bonito
12-14-2005, 10:03 PM
Yes, the following is in the link directory root ,but not in the website root.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]
I added the RewriteBase / after reading advice in other threads - not sure if I need it though.
Ap0s7le
12-14-2005, 10:20 PM
Is mod_rewrite installed on the server in question?
A file with
Content visible to registered users only.
Could provide useful for finding that out.
-Casey
Bonito
12-15-2005, 12:14 AM
Content visible to registered users only.
I checked phpinfo first and could see mod_rewrite was loaded, then I asked the host to confirm it was enabled (it wasn't) but they will enable if I give them the details to the above question.
My directory is up and running but would like to run it with mod_rewrite enabled. I could do with knowing how to tell them that I have no custom error pages and that I want mod_rewrite activated for default 404 (if thats all I need to catch for php Link Directory). I don't want the host to know how dumb I really am :?
Ap0s7le
12-15-2005, 12:56 AM
Honestly Bonito, I don't see why they are even asking you the questions they are.
Can you PM me a link to your site?
If mod_rewrite is installed, than it should be working.
I would simply email them, say you have a script that uses mod_rewrite but for some reason it's not working. Ask if they can make sure the server is setup properly for it.
-Casey
Bonito
12-16-2005, 03:19 PM
The hosting company have finally said they don't support .htaccess on the server. :cry: It has took 4 tickets and a verbose explanation before they informed me. I don't understand why they couldn't inform me after the first ticket asking for mod_rewrite to be enabled - *Gutted*
Thanks for all your efforts to assist me Ap0s7le you've learnt me more than you probably realise - much appreciated!
cheers
Bonito
Ap0s7le
12-16-2005, 10:28 PM
Wow.
Ask them what they propose you should do.
I personally would find another host.
I'm glad I helped you some though, feel free to contact me at anytime.
-Casey
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.