Rewrite - what, where, how?! (updated)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Rewrite - what, where, how?! (updated)
Rewrite - what, where, how?! (updated)
03-01-2009 9:20 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've been sent here by Plusnet's support department to find out how to do something with my ccgi space. I've been told I need a "rewrite", but not what it is, where to find it or how to implement it.
Simply put, I have a blog on my ccgi space in a directory. I have a domain now pointing to my ccgi space...but I want it to go straight to the blog directory.
Help much appreciated, even if its just point me somewhere else...
Thanks,
Philip
UPDATE : Following instructions from http://community.plus.net/forum/index.php/topic,46224.0.html, amoungst other posts, I've got an .htaccess file in the root of my ccgi space which contains:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.qwerty.org.uk$ [nc]
RewriteRule (.*) /qwerty/$1
(where qwerty is the name of the domain and the directory on the ccgi server).
I get a 500 server error though...

Help?!
Re: Rewrite - what, where, how?! (updated)
05-01-2009 9:39 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
mod_rewrite is a bit confusing, and there's more than one way of doing most things, but this is one way which should work:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.qwerty.org.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/qwerty/ [NC]
RewriteRule (.*) /qwerty/$1
Re: Rewrite - what, where, how?! (updated)
05-01-2009 4:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for the info. Since putting up the update I've found out about my mistake and corrected it, thanks to the post of another member of Plusnet staff (RamiDoodle).
I'm still having trouble though. Not sure if its a DNS thing, or that I've got the wrong Ipstag (should it be/also be ns1.plusnet.co.uk etc)?
DNS settings are currently:
Left field Type Pri Right field
neuron.org.uk. a 84.92.1.4
mx 20 mx.last.plus.net.
www cname ccgi.plus.net
Ipstag:
ns1.force9.net
ns2.force9.net
Re: Rewrite - what, where, how?! (updated)
05-01-2009 4:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Rewrite - what, where, how?! (updated)
06-01-2009 12:16 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
How did you get it up there? did you use SSH/telnet to type it in or did you use FTP or another client?
Whatever it is it seems to have corrupted your file, probably best to remove it from the server and add it in again.
edit: I've worked it out - your .htaccess file is in Rich-Text format, when it needs to be in plain text. If you're on Windows then use a text editor like notepad (should be in your accessories) to create your .htaccess file, rather than wordpad/word or similar.
Re: Rewrite - what, where, how?! (updated)
08-01-2009 7:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You were right - it was RTF. I'm using a Mac and TextEdit defaults to RTF. I've changed things around now and, using Cyberduck I've transferred the new .htaccess file to the root of my ccgi space. I chmod'd the file to 755.
Now I have a new problem.

I don't get a 500 error now, but a 403:
Forbidden
You don't have permission to access / on this server.
I knew I couldn't point my DNS to a subdirectory of the ccgi space, but previously I have the domain pointing to the ccgi root ok - it brought up a directory listing. As I understand it, the mod_rewrite is supposed to reside where it does, in the root, and redirect the domain request to the subdirectory, neatly side-stepping the problem of being unable to point the DNS directly.
So whats going on? I've obviously done something wrong!
Soon as this is sorted I'm writing a nice forum post to help out other people who want to do this!
Thanks for reading and any help!
Philip
Re: Rewrite - what, where, how?! (updated)
09-01-2009 1:18 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I can see that you have 2 open tickets with regards to the .htaccess problem you are having.. I had a look at it, but it will be easier for me to edit it, if you are oki with resetting the password for ccgi to your default member centre login detail

So, I'll be able to have a look at this for you, however I need to reset your cgi login details to the default user/pass for the member centre, would that be ok?
Re: Rewrite - what, where, how?! (updated)
09-01-2009 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
THanks for the help. It's _really_ appreciated.

Philip
Re: Rewrite - what, where, how?! (updated)
09-01-2009 5:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Rewrite - what, where, how?! (updated)