Closed Thread
Results 1 to 5 of 5

Thread: .htaccess and ModRewrite : how to get it work

  1. #1
    tryma's Avatar
    tryma is offline x10Hosting Member tryma is an unknown quantity at this point
    Join Date
    Jan 2011
    Location
    Nowhere...LoL
    Posts
    10

    Question .htaccess and ModRewrite : how to get it work

    I am trying to set a simple Rewrite rule in my .htaccess file using the " RewriteEngine ON " option but apparently there is someting wrong.

    The rule is:

    Code:
    RewriteRule (.*)index.php
    and when it's enabled in the .htaccess file, my site results in a " Misconfiguration Error ".

    Also, I can't obtain any error log from my CPanel, so I can't figure out what's wrong.

    Thakyou in advance for your time...

  2. #2
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: .htaccess and ModRewrite : how to get it work

    What is the error code ?

  3. #3
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: .htaccess and ModRewrite : how to get it work

    What are you trying to do by setting your rewrite rule?

  4. #4
    Anna's Avatar
    Anna is online now I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: .htaccess and ModRewrite : how to get it work

    Try adding "RewriteBase /" (without quotes) to the .htaccess, after enabling rewrite, and before any rewrite directives
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  5. #5
    tryma's Avatar
    tryma is offline x10Hosting Member tryma is an unknown quantity at this point
    Join Date
    Jan 2011
    Location
    Nowhere...LoL
    Posts
    10

    Re: .htaccess and ModRewrite : how to get it work

    I would like to thank you ALL for your precious help, and please beg my pardon for answering so late.

    Quote Originally Posted by MaestroFX1 View Post
    What is the error code ?
    The error is generic 500 Internal Server Error. Below the full error page.
    Code:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, no-reply@x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Quote Originally Posted by calistoy View Post
    What are you trying to do by setting your rewrite rule?
    The rewrite rule is part of the htaccess file needed by Oxwall to run correctly. I am reading official documentation on Rewrite Rule to better understand its behavior .

    Quote Originally Posted by Anna View Post
    Try adding "RewriteBase /" (without quotes) to the .htaccess, after enabling rewrite, and before any rewrite directives
    Thankyou, I will let you know as soon as update procedures on "boru" are finished ( since I can't use FTP access because of the RO FS.

    ---------- Post added at 05:30 PM ---------- Previous post was at 08:16 AM ----------

    Quote Originally Posted by Anna View Post
    Try adding "RewriteBase /" (without quotes) to the .htaccess, after enabling rewrite, and before any rewrite directives
    Thankyou! This solved the problem!

Closed Thread

Similar Threads

  1. hello htaccess. not work
    By toiraq156 in forum Free Hosting
    Replies: 3
    Last Post: 10-23-2010, 11:01 AM
  2. Cannot run scripts that use modrewrite
    By tablecat in forum Free Hosting
    Replies: 5
    Last Post: 07-29-2010, 11:23 PM
  3. URL ModRewrite and Hotlink protection
    By rokkwarr in forum Free Hosting
    Replies: 2
    Last Post: 01-28-2010, 11:42 AM
  4. php_value in .htaccess - does it work for you?
    By misson in forum Free Hosting
    Replies: 5
    Last Post: 10-15-2009, 09:33 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