Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: .htaccess viewing/using problem

  1. #1
    denis.bosma61's Avatar
    denis.bosma61 is offline x10Hosting Member denis.bosma61 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    10

    Lightbulb .htaccess viewing/using problem

    Hi guys,
    So I have a problem with using .htaccess on my site, I can't see it in my file manager and if I am trying to use one I'll get an 404 error
    Regards,

    Denis Bosma

  2. #2
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: .htaccess viewing/using problem

    Quote Originally Posted by denis.bosma61 View Post
    Hi guys,
    So I have a problem with using .htaccess on my site, I can't see it in my file manager and if I am trying to use one I'll get an 404 error
    Regards,

    Denis Bosma

    The .htaccess is hidden file. So when you are opening the Filemanager, select the tickmark "Show hidden files"

    Then you can see it in your public_html folder.
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

  3. #3
    denis.bosma61's Avatar
    denis.bosma61 is offline x10Hosting Member denis.bosma61 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    10

    Re: .htaccess viewing/using problem

    Alright that's ok but...
    I have an phpbb forum and when I'm adding this to the /adm folder I've got an 404 ?

    Code:
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    allow from my-ip
    deny from all

  4. #4
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: .htaccess viewing/using problem

    Quote Originally Posted by denis.bosma61 View Post
    Alright that's ok but...
    I have an phpbb forum and when I'm adding this to the /adm folder I've got an 404 ?

    Code:
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    allow from my-ip
    deny from all
    Actually What you want to do?

    You want to allow only your ip to access adm folder

    then add this

    Code:
    order deny,allow
    deny from all
    allow from xxx.xxx.xxx.xxx
    Where xxx.xxx.xxx.xxx is your ip.
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

  5. #5
    denis.bosma61's Avatar
    denis.bosma61 is offline x10Hosting Member denis.bosma61 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    10

    Re: .htaccess viewing/using problem

    Alright thumbs up on that one, what about this:
    I'm trying this
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([A-Za-z0-9\-\+]+)$ ./page.php?p=$1 [L]
    And this is what I get





    BTW, @gsonline it's not working again...
    Last edited by denis.bosma61; 03-29-2011 at 02:06 PM.

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: .htaccess viewing/using problem

    Try:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([A-Za-z0-9\-\+]+)$ page.php?p=$1 [L]
    Also, by "not working", do you mean the IP block?
    Nothing is always absolutely so.

  7. #7
    denis.bosma61's Avatar
    denis.bosma61 is offline x10Hosting Member denis.bosma61 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    10

    Re: .htaccess viewing/using problem

    Quote Originally Posted by descalzo View Post
    Also, by "not working", do you mean the IP block?
    Yep...


    .htaccess viewing/using problem-screenshot-3.png
    This is after your code witch is
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([A-Za-z0-9\-\+]+)$ page.php?p=$1 [L]
    Last edited by denis.bosma61; 03-29-2011 at 02:31 PM.

  8. #8
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: .htaccess viewing/using problem

    Quote Originally Posted by denis.bosma61 View Post
    BTW, @gsonline it's not working again...
    Did it worked first time?


    Quote Originally Posted by denis.bosma61 View Post
    Yep...


    Attachment 6200
    This is after your code witch is
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([A-Za-z0-9\-\+]+)$ page.php?p=$1 [L]
    What about the code provided by descalzo?
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

  9. #9
    denis.bosma61's Avatar
    denis.bosma61 is offline x10Hosting Member denis.bosma61 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    10

    Re: .htaccess viewing/using problem

    Quote Originally Posted by gsonline View Post
    Did it worked first time?
    Nope...

    Quote Originally Posted by gsonline View Post
    What about the code provided by descalzo?
    It's not working... did you saw the attachment ?

  10. #10
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: .htaccess viewing/using problem

    1. Got a URL that throws the 500 error?
    2. Where is the .htaccess located?
    3. Where is page.php located?

    I'll get to the IP block in a minute.
    Nothing is always absolutely so.

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Problem When Viewing my Website
    By cgrim29588 in forum Free Hosting
    Replies: 15
    Last Post: 06-14-2009, 08:55 PM
  2. Problem viewing page in IE6
    By wizkid in forum Programming Help
    Replies: 10
    Last Post: 01-17-2009, 04:52 AM
  3. Problem Viewing Home Page
    By mdss08 in forum Free Hosting
    Replies: 6
    Last Post: 07-10-2008, 05:04 PM
  4. problem with viewing site
    By anarak92 in forum Free Hosting
    Replies: 2
    Last Post: 01-24-2006, 12:07 PM
  5. problem with viewing site
    By anarak92 in forum Free Hosting
    Replies: 1
    Last Post: 01-23-2006, 07:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers