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
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. ??
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
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.
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.
Comments on odd .htaccess problem
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
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:
if it matters the blog should be at www.accommodation-uk.net/blog
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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 at the top of .htaccess, next to the ^admin/ rule. ??
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Hey Jill, I am going to just address my posts to you! Thanks. You just made my Christmas card list
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Jill,
How do I change that code to include the folder blog/wp-admin/ ? Or do I add another rule?
Thanks,
Jez.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
hmm, ok - that one I don't know <G> but would guess, yes you just make a new rule
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
No, I can't make that work.
I tried a few variations with and without the blog/ folder present. Any ideas? Paul?
Thanks,
Jez.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
hmm, sorry, don't know/understand enough about .htaccess to be able to help here. Will have to be a question for the Maestro
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
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.
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Don't worry, I got it. Thanks