logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

odd .htaccess problem

Version: 4.1.13
Example URL: accommodation-uk.net/blog


odd .htaccess problem
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/19/07 - 11:56 AM:
quote post
#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

rewriteRule ^([^/]*)\.html$ http://www.accommodation-uk.net/ [R,L]
RewriteRule ^admin/?$ admin/index.php

RewriteRule ^members/([0-9]+)\.html?$ memberlist.php?rewritten=1&page=$1
RewriteRule ^members/([-_/\+A-Za-z0-9]+)-([0-9]+)-trader\.html?$ trader.php?rewritten=1&id=$2
RewriteRule ^members/([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ memberlist.php?rewritten=1&action=profile&id=$2
RewriteRule ^members/?$ memberlist.php?rewritten=1
RewriteRule ^help/?$ help.php?rewritten=1
RewriteRule ^help/([-_/\+A-Za-z0-9]+)/?$ help.php?rewritten=1&action=showcat&name=$1
RewriteRule ^help/([-_/\+A-Za-z0-9]+)/([-_/\+A-Za-z0-9]+)-([0-9]+)\.html?$ help.php?rewritten=1&action=showitem&id=$3


RewriteRule ^tags/([a-zA-Z0-9]+)/?$ search.php?rewritten=1&filled=1&action=filter&whichtype=links&tagscondition=like&tagssearch=|$1|

RewriteRule ^thread/([0-9]+)/([0-9]+)/$ comments.php?rewritten=1&id=$1&page=$2
RewriteRule ^thread/([0-9]+)/$ comments.php?rewritten=1&id=$1
RewriteRule ^links/[-_/\+A-Za-z0-9]+-([0-9]+)\.html$ link.php?rewritten=1&action=detail&id=$1
RewriteRule ^([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/sp([0-9]+).htm$ index.php?rewritten=1&action=displaycat&catname=$1&subpage=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)/?$ index.php?rewritten=1&action=displaycat&catname=$1
RewriteRule ^([-_/\+A-Za-z0-9]+)/([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catname=$1&page=$2


if it matters the blog should be at www.accommodation-uk.net/blog
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 831
Posted 11/19/07 - 12:52 PM:
quote post
#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. ??
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/19/07 - 01:18 PM:
quote post
#3
Hey Jill, I am going to just address my posts to you! Thanks. You just made my Christmas card list smiling face
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 831
Posted 11/19/07 - 08:52 PM:
quote post
#4
Jez wrote:
Hey Jill, I am going to just address my posts to you! Thanks. You just made my Christmas card list smiling face


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 grin


Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/20/07 - 02:01 AM:
quote post
#5
Jill,

How do I change that code to include the folder blog/wp-admin/ ? Or do I add another rule?

Thanks,

Jez.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 831
Posted 11/20/07 - 02:04 AM:
quote post
#6
hmm, ok - that one I don't know <G> but would guess, yes you just make a new rule


Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/20/07 - 09:49 AM:
quote post
#7
No, I can't make that work. shaking head

I tried a few variations with and without the blog/ folder present. Any ideas? Paul?

Thanks,

Jez.


babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 262
Total Posts: 831
Posted 11/20/07 - 09:57 AM:
quote post
#8
hmm, sorry, don't know/understand enough about .htaccess to be able to help here. Will have to be a question for the Maestro
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/20/07 - 11:51 AM:
quote post
#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.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/20/07 - 12:02 PM:
quote post
#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 sad 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.


Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 27
Total Posts: 110
Posted 11/20/07 - 02:22 PM:
quote post
#11
Don't worry, I got it. Thanks
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.