Help me with this .htaccess file

Status
Not open for further replies.

gamelord

Active Member
1,139
2009
153
0
Okay the .htaccess file is as below:

Code:
Options +FollowSymlinks

RewriteEngine on

RewriteRule ^xxx/([^/]+)/([^/]+)/$ - [F,L]
RewriteRule ^xxx/([^/]+)/$ - [F,L]
RewriteRule ^xxx(/?)$ - [F,L]

RewriteRule ^([^/.]+)/([^/.]+)/([0-9]+)(/?)$ index.php?xxx=$1&chapter=$2&page=$3 [L]
RewriteRule ^([^/.]+)/([^/.]+)(/?)$ index.php?xxx=$1&chapter=$2 [L]
RewriteRule ^([^/.]+)(/?)$ index.php?xxx=$1 [L]

Now my problem this is working on a root domain. I want to get this working on a subfolder of the main domain also.So anyone please help with the above code.I don't know what modifications are required. :(
 
9 comments
Ok I will give more details....

I have a wordpress blog in the root domain say http://www.abcd.com/ and it has its own .htaccess file and if I delete it the wordpress blog will not work.

Now, I am trying to install another script(not wordpress) onto a subfolder say http://www.abcd.com/sub/ I installed the script correctly according to the instructions and when I access http://www.abcd.com/sub/ it says Nothing found for sub.

the .htaccess file of the script i installed in the subfolder is shown in the first.

Now please help me...
 
Code:
RewriteRule ^sub/^xxx/([^/]+)/([^/]+)/$ - [F,L]
RewriteRule ^sub/^xxx/([^/]+)/$ - [F,L]
RewriteRule ^sub/^xxx(/?)$ - [F,L]

RewriteRule ^sub/^([^/.]+)/([^/.]+)/([0-9]+)(/?)$ index.php?xxx=$1&chapter=$2&page=$3 [L]
RewriteRule ^sub/^([^/.]+)/([^/.]+)(/?)$ index.php?xxx=$1&chapter=$2 [L]
RewriteRule ^sub/^([^/.]+)(/?)$ index.php?xxx=$1 [L]
replace sub with your subdir name..
in the .htaccess of main dir..
I am busy now :( will check this thread later..
 
@InFlames the .htaccess file is there in the subfolder also and that is what is given in the first thread.It is a manga viewer script.

@Snell There is no DB required for the script.It is based on the folders.

@desiboy I will try it
 
Status
Not open for further replies.
Back
Top