Webmastersite.net
Register Log In

.htaccess file for WSN

Title .htaccess file for WSN
Message Text 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
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership smg05
Views 791 views. Averaging 0 views per day.
Similar Topics
Submission Date Oct 20, 2005 - 6:31 PM