+ Reply to Thread
Results 1 to 6 of 6

Thread: .htacces trouble

  1. #1
    lewisoconnor88 is offline x10Hosting Member lewisoconnor88 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    2

    .htacces trouble

    Hi everyone,

    I've been developing my site locally with XAMPP and normally remove the php extension from the url, just for cleaner urls.

    the .htaccess file has:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ $1.php [L,QSA]

    This works great locally, but online i get:
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.


    Really don't know why it would make a difference being on a server??

    Any help is greatly appreciated

    Lewis

  2. #2
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: .htacces trouble

    The site can work with even an empty .htaccess file.This is from my experience.
    But being a really powerful tool,.htaccess is to be edited very carefully.
    Here is a basic tutorial.
    Though a bit lengthy, it is a nice way and easiest of all I knew.
    This could help you if you follow it and that works on X10.
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Re: .htacces trouble

    @ vv.bbcc19 :
    He probably knows about empty .htaccess and clearly says what he wants to acheive, if you can point out what's the mistake in his code, it would make more sense-no offence.
    I'm not sure about this but did you try adding:
    Options +FollowSymlinks
    ?

  4. #4
    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,636

    Re: .htacces trouble

    After RewriteEngine on, add a line

    RewriteBase /

    It is because of the shared server set up.
    Nothing is always absolutely so.

  5. #5
    lewisoconnor88 is offline x10Hosting Member lewisoconnor88 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    2

    Re: .htacces trouble

    Guys, thank you all for your help!

    Adding "RewriteBase /" worked great, thanks very much descalzo.

    \m/

    Lewis

  6. #6
    indie(Function) is offline x10Hosting Member indie(Function) is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    2

    Re: .htacces trouble

    I just followed this example, and this is my code:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ $1.php [L,QSA]

    However, http://www.indieFunction.com/radio/ returns a 500 Internal Server error... does anyone have any tips?

+ Reply to Thread

Similar Threads

  1. .htacces index.php
    By bloodhound15 in forum Free Hosting
    Replies: 3
    Last Post: 12-10-2010, 05:39 PM
  2. .Htacces does not work
    By gameserv15 in forum Free Hosting
    Replies: 6
    Last Post: 06-09-2010, 10:25 AM
  3. trouble
    By wwlinsist in forum Free Hosting
    Replies: 2
    Last Post: 10-07-2009, 11:48 AM
  4. Need to edit .htacces file for my wordpress blog
    By balaji2u in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 11-12-2008, 06:36 PM
  5. is my .htacces slowing down my site?
    By galaxyAbstractor in forum Programming Help
    Replies: 8
    Last Post: 06-06-2008, 12:46 PM

Tags for this Thread

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