I'm using WSN 3.16 and lately I've been installing other PHP based scripts within the same domain name.
The issue is that when I try to open up the other script in another directory with a URL like this: http://articles.listyoursite.us/ I get a page not found.
RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1 <Files 403.shtml> order allow,deny allow from all </Files>
deny from 213.91.162.127 deny from 63.214.171.166 deny from 207.217.96.28 deny from 64.202.163.162 deny from 64.40.147.235 deny from 64.62.254.166 deny from 24.244.141.194
There's a lot of stuff in there that's not in the WSN Links .htaccess and I have little idea of what it does or if it requires a specific order. Also you haven't set a rewrite base.
I don't see how you have two scripts in the same directory, anyhow. .htaccess is directory-specific.
I'm running WSN in only one directory in my public_html folder and this .htaccess has a global affect on the other folders which have nothing to do with WSN.
This is what I tried. I took out the following two lines and it rendered the WSN categories useless.
I guess what I'm asking is do I need these two lines to make WSN work correctly.
Clearly, I need ALL of these lines in order for WSN to work.
I took them out because I wasn't getting a clear answer on how to resolve the issues that this particular .htaccess file which had a global affect on all other PHP scripts.
Now that I've removed all the lines below, it rendered the WSN directory useless.
Comments on .htaccess file for WSN
Member
Usergroup: Customer
Joined: Jan 23, 2005
Total Topics: 6
Total Comments: 15
Hi,
I'm using WSN 3.16 and lately I've been installing other PHP based scripts within the same domain name.
The issue is that when I try to open up the other script in another directory
with a URL like this: http://articles.listyoursite.us/ I get a page not found.
If I type in http://articles.listyoursite.us/index.php, it works fine. This is not how I want to promote my sub-domain in terms of SEO.
How do I modify the .htaccess file so it doesn't mess-up the WSN directory and make the other PHP based program work correctly.Thanks!
Here's the original .htaccess file from my WSN.
RewriteEngine on
# If not working, uncomment and correctly fill the line below:
# RewriteBase /wsnlinks315
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]
RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php
RewriteRule ^links/([a-z]+)/([0-9]+)$ link.php?action=$1&id=$2
RewriteRule ^links/([a-z]+)/([0-9]+)/$ link.php?action=$1&id=$2
RewriteRule ^links/([0-9]+)$ link.php?id=$1
RewriteRule ^links/([0-9]+)/$ link.php?id=$1
RewriteRule ^thread/([0-9]+)$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)$ comments.php?id=$1&page=$2
RewriteRule ^thread/([0-9]+)/([0-9]+)/$ comments.php?id=$1&page=$2
RewriteRule ^([0-9]+)$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)$ index.php?action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/([0-9]+)/$ index.php?action=displaycat&catid=$1&page=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 213.91.162.127
deny from 63.214.171.166
deny from 207.217.96.28
deny from 64.202.163.162
deny from 64.40.147.235
deny from 64.62.254.166
deny from 24.244.141.194
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
There's a lot of stuff in there that's not in the WSN Links .htaccess and I have little idea of what it does or if it requires a specific order. Also you haven't set a rewrite base.
I don't see how you have two scripts in the same directory, anyhow. .htaccess is directory-specific.
Member
Usergroup: Customer
Joined: Jan 23, 2005
Total Topics: 6
Total Comments: 15
I'm running WSN in only one directory in my public_html folder and this .htaccess has a global affect on the other folders which have nothing to do with WSN.
This is what I tried. I took out the following two lines and it rendered the WSN categories useless.
I guess what I'm asking is do I need these two lines to make WSN work correctly.
RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php
Please advise. Thanks!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
In order to get to your admin panel you need those two lines, yes, presuming your admin panel is at /admin/.
Member
Usergroup: Customer
Joined: Jan 23, 2005
Total Topics: 6
Total Comments: 15
Clearly, I need ALL of these lines in order for WSN to work.
I took them out because I wasn't getting a clear answer on how to resolve the issues that this particular .htaccess file which had a global affect on all other PHP scripts.
Now that I've removed all the lines below, it rendered the WSN directory useless.
Totally confused now.
RewriteRule ^links/([a-z]+)/([0-9]+)$ link.php?action=$1&id=$2
RewriteRule ^links/([a-z]+)/([0-9]+)/$ link.php?action=$1&id=$2
RewriteRule ^links/([0-9]+)$ link.php?id=$1
RewriteRule ^links/([0-9]+)/$ link.php?id=$1
RewriteRule ^thread/([0-9]+)$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)$ comments.php?id=$1&page=$2
RewriteRule ^thread/([0-9]+)/([0-9]+)/$ comments.php?id=$1&page=$2
RewriteRule ^([0-9]+)$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)$ index.php?action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/([0-9]+)/$ index.php?action=displaycat&catid=$1&page=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1
Member
Usergroup: Customer
Joined: Jan 23, 2005
Total Topics: 6
Total Comments: 15
Paul,
I'm all set. I'd figured it out. I just had to create another .htaccess file in the other directories.