Activity Stream
48,167 MEMBERS
6901 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

    Default Help me with this .htaccess file

    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.
    gamelord Reviewed by gamelord on . Help me with this .htaccess file Okay the .htaccess file is as below: Options +FollowSymlinks RewriteEngine on RewriteRule ^xxx/(+)/(+)/$ - RewriteRule ^xxx/(+)/$ - RewriteRule ^xxx(/?)$ - Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Post this into the Hosting Section and you will get your answer quick.

    Defendos BETA3 Released! Thread - Official Website

  4.     
    #3
    Member
    copy this .htaccess file to the each subfolder you want it to work & delete the one in the root


  5.     
    #4
    Member
    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...

  6.     
    #5
    Member
    which script are you using? if a .htaccess file comes along with that script just upload it in the subfolder

  7.     
    #6
    Member
    it says Nothing found for sub
    Have you installed it correctly ?

    Database created or imported ?

    i think it something related to DB

  8.     
    #7
    Member
    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..
    Coding Horror Fan
    I don't read PM's frequently .

  9.     
    #8
    Member
    @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

  10.     
    #9
    Member
    Website's:
    downpump.com downpump.org downpump.info downpump.net
    Add this to your subfolder's .htaccess
    PHP Code: 
    RewriteBase /sub 

  11.     
    #10
    Member
    @desiboy not working

    @downpump not working

    Still have the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. The .htaccess file
    By Areon in forum Server Management
    Replies: 0
    Last Post: 20th Mar 2014, 01:20 PM
  2. help in HTACCESS File
    By donkeyhost in forum Technical Help Desk Support
    Replies: 3
    Last Post: 8th Oct 2012, 02:57 PM
  3. need quick help regarding .htaccess file
    By ashutariyal in forum Technical Help Desk Support
    Replies: 0
    Last Post: 14th Jan 2011, 02:12 PM
  4. Htaccess file.
    By Royal King in forum vBulletin
    Replies: 3
    Last Post: 12th Oct 2009, 09:14 AM
  5. How to make an .htaccess file.
    By detailz in forum Webmaster Discussion
    Replies: 3
    Last Post: 23rd Jul 2008, 10:54 AM

Tags for this Thread

BE SOCIAL