Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/19/07 - 11:56 AM:
#1
I have a strange problem with my .htaccess. I, for some reason cannot access my blog! It was OK last week or so (It's a new blog and I haven't written any posts yet). I added a line to the .htaccess that the WSN script produces to redirect all the old html pages but removing it does not help. I wonder if you can shed some light?
I paste the code:
Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] RewriteEngine On
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 831
Posted 11/19/07 - 12:52 PM:
#2
I don't know if this will help your case as I am no good with htaccess or php, but Paul guided me when I was having a problem getting access to my forum by adding RewriteRule ^forum/?$ forum/index.php at the top of .htaccess.
In this thinking you could perhaps try adding
RewriteRule ^blog/?$ blog/index.php
at the top of .htaccess, next to the ^admin/ rule. ??
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 831
Posted 11/19/07 - 08:52 PM:
#4
Jez wrote: Hey Jill, I am going to just address my posts to you! Thanks. You just made my Christmas card list
LOL! Glad it worked! I have been a pain in the butt to Paul asking so many questions and how to do things, so glad it's now starting to pay off by helping others
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/20/07 - 11:51 AM:
#9
The rule RewriteRule ^blog/wp-admin/?$ blog/wp-admin/index.php
should do it. This all gets rather messy though... if possible, changing the blog to a subdomain blog.accommodation-uk.net so that it's no longer a subdirectory of WSN (in apache's view) would eliminate all the issues.
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/20/07 - 12:02 PM:
#10
Paul,
Is your rule in addition to Jill's rule or instead of?
I will see if it's still an option to move the blog to a sub directory- I wish I had thought of that first The .htaccess, with the redirect for all the old pages, plus the rest of the code that wsn links needs, is starting to look a real mess.