Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
htaccess problem ?
Topic Options
- 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
- :
- Re: htaccess problem ?
htaccess problem ?
24-02-2011 1:20 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
until earlier yesterday my www.mydomain.co.uk was working in that an htaccess file was redirecting the domain name to a folder on my ccgi space.
Or at least the last I knew I had an htaccess file!
Earlier yesterday I upgraded to WordPress 3.1 and immediately everything broke.
I started getting a 500 error - I seemed to have solved that. It seemed that there was no htaccess file in the root directory but then I realised that Filezilla had somehow turned off the 'force showing hidden files'. Because there didn't appear to an htaccess file I uploaded one probably overwriting an existing one.
Now I'm getting a a 403 error.
I can navigate to ccgi.username.co.uk/folder but curiously in the location bar displays www.mydomain.co.uk/~username/folder
Here's my htaccess:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.534\.co\.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/~username/534/
RewriteRule (.*) /534/$1
Any ideas?
Thanks
Paul
Or at least the last I knew I had an htaccess file!
Earlier yesterday I upgraded to WordPress 3.1 and immediately everything broke.
I started getting a 500 error - I seemed to have solved that. It seemed that there was no htaccess file in the root directory but then I realised that Filezilla had somehow turned off the 'force showing hidden files'. Because there didn't appear to an htaccess file I uploaded one probably overwriting an existing one.
Now I'm getting a a 403 error.
I can navigate to ccgi.username.co.uk/folder but curiously in the location bar displays www.mydomain.co.uk/~username/folder
Here's my htaccess:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.534\.co\.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/~username/534/
RewriteRule (.*) /534/$1
Any ideas?
Thanks
Paul
Message 1 of 6
(9,556 Views)
5 REPLIES 5
Re: htaccess problem ?
24-02-2011 2:03 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That .htaccess file content looks OK to redirect to a folder. Are the permissions on that file 0640 so that Apache can read it?
Getting a 403 error suggests file permissions haven't been set correctly. After you updated WordPress did you reset file and directory permissions again (eg using Gabe's script)?
Getting a 403 error suggests file permissions haven't been set correctly. After you updated WordPress did you reset file and directory permissions again (eg using Gabe's script)?
David
Message 2 of 6
(661 Views)
Re: htaccess problem ?
24-02-2011 11:20 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
thanks for that spraxyt.
File permissions on the root htaccess is 640
Haven't used Gabe's script but my permissions on the WordPress install are such that when I navigate to www.mydomain.co.uk/~username/folder/ the website works even with the root htaccess enabled
But navigating to www.mydomain.co.uk results in the access forbidden 403 error.
File permissions on the root htaccess is 640
Haven't used Gabe's script but my permissions on the WordPress install are such that when I navigate to www.mydomain.co.uk/~username/folder/ the website works even with the root htaccess enabled
But navigating to www.mydomain.co.uk results in the access forbidden 403 error.
Message 3 of 6
(661 Views)
Re: htaccess problem ?
24-02-2011 1:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Does it work if you add a / on the end of the domain name, ie www.mydomain.co.uk/ to avoid the trailing slash problem?
David
Message 4 of 6
(661 Views)
Re: htaccess problem ?
24-02-2011 2:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
hi spraxyt,
adding a / doesn't work.
mydomain.co.uk (i.e. without www) with and without the / also don't work
adding a / doesn't work.
mydomain.co.uk (i.e. without www) with and without the / also don't work
Message 5 of 6
(661 Views)
Re: htaccess problem ?
24-02-2011 2:09 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
bloody typo !
it's working now
thanks
it's working now
thanks
Message 6 of 6
(661 Views)
Topic Options
- 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
- :
- Re: htaccess problem ?