+ Reply to Thread
Results 1 to 2 of 2

Thread: htaccess URL rewriting

  1. #1
    jayar is offline x10Hosting Member jayar is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    1

    Question htaccess URL rewriting

    I am using my framework which ussually have these lines on my .htaccess file

    RewriteEngine on
    RewriteBase /
    RewriteCond %{QUERY_STRING} !mod= [NC]
    RewriteRule ^([^/]+)$ /index.php?mod=$1 [L]

    Im not sure why it is not working on the server.

    Basically this entry is hiding the GET parameter "mod" and pass it to index.php
    www.domain.com/page is actually www.domain.com/index.php?mod=page

    This is surely working for other servers like hostgator, gandi and OVH.

    BTW: this is my page http://jayar.x10hosting.com/

    Error_logs
    [Wed Jan 13 23:47:19 2010] [error] [client 66.249.71.6] File does not exist: /home/jayar/public_html/login
    [Wed Jan 13 23:47:19 2010] [error] [client 67.227.143.212] File does not exist: /home/jayar/public_html/login

    The rewriting is not working then right?

    .
    Last edited by jayar; 01-13-2010 at 10:58 PM. Reason: Added URL

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: htaccess URL rewriting

    If you're referring to the 500 response, there might be something else misconfigured in your .htaccess. Post the rest of it.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Htaccess - regular expressions
    By lair360 in forum Tutorials
    Replies: 1
    Last Post: 05-04-2009, 12:48 AM
  2. Replies: 8
    Last Post: 01-29-2009, 03:01 PM
  3. HTACCESS Help
    By takuhii in forum Free Hosting
    Replies: 2
    Last Post: 09-30-2008, 03:35 PM
  4. Internal Server Error
    By Tom743 in forum Free Hosting
    Replies: 10
    Last Post: 08-28-2008, 01:16 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