| _Si_ |
|
NetHosted Customer
Joined: 13 May 2009 Posts: 2
|
Posted: Wed May 13, 2009 8:47 pm Post subject: mod_rewrite help |
| |
Hi folks,
I'm trying to get a forum script up and running, we're moving our site across from another host so I want to keep the same script for a variety of reasons.
Unfortunately I didn't write it and I'm struggling to get to grips with it. The main stumbling block now is it makes heavy use of mod_rewrite, something I'm not all that familiar with.
To avoid the ridiciulous htaccess file I created a very simple test one but still can't get it to work.
I have a .htaccess file with:
| Code: |
RewriteEngine On
RewriteRule ^test.html$ black.gif
|
Which as far as I understand it should take any request on this folder for the file test.html, and load black.gif into the browser whilst maintaining the url. Right?
Trouble is I get a 404 error, and in the error log it tells me it can't find the file path/folder/sys_cpanel
Why is it trying to rewrite to sys_cpanel and what did I do wrong?
If I can figure this out hopefully the massive amount of rules the forum author put together will all work happily without my involvement
Any help would be greatly appreciated,
cheers,
Si |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 7017
|
Posted: Wed May 13, 2009 8:53 pm Post subject: |
| |
Hi,
Are you a NetHosted customer? If so I'd advise you to send in a ticket with regards to this so we can troubleshoot your .htaccess file for you.
I'd suggest this might help:
| Code: |
RewriteEngine On
RewriteRule ^test.html$ black.gif [L,NC]
|
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Follow us on Twitter: http://twitter.com/nethosted
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
| _Si_ |
|
NetHosted Customer
Joined: 13 May 2009 Posts: 2
|
Posted: Wed May 13, 2009 8:56 pm Post subject: |
| |
I am indeed, I just didn't want to keep nagging so I thought I'd share my problems with all
I'll submit a request (the extra tags didn't help I'm afraid)
Cheers again,
Si |
|
| Back to top |
|
User Permissions |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
| |