Closed Thread
Results 1 to 8 of 8

Thread: Mod rewrite is not Enable

  1. #1
    mathkas39 is offline x10Hosting Member mathkas39 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    5

    Exclamation Mod rewrite is not Enable

    please help me rewrite mode don't work
    Last edited by mathkas39; 06-23-2011 at 03:05 PM.

  2. #2
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Mod rewrite is not Enable

    Hello,

    It is enabled. What error(s) do you receive? Could you elaborate a bit? Also, please post the code you are currently using.


  3. #3
    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: Mod rewrite is not Enable

    Might also help to post under a Forum account that has Free Hosting Account attached.
    Nothing is always absolutely so.

  4. #4
    mathkas39 is offline x10Hosting Member mathkas39 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    5

    Re: Mod rewrite is not Enable

    this is the code


    <IfModule mod_rewrite.c>
    RewriteEngine on

    Rewriterule ^blog/(.+)/(.+).html$ ./blog/view/blog.php?page=$1&mode=$2 [NC]
    Rewriterule ^blog/(.+).html$ ./blog/blog.php?page=$1 [NC]
    Rewriterule ^blog/(.+)/$ ./blog/view/blog.php?page=$1 [NC]
    Rewriterule ^blog/$ ./blog/blog.php [NC]

    RewriteCond %{REQUEST_FILENAME} !-f
    Rewriterule ^blog/(.+)/(.+)$ ./blog/view/blog.php?page=$1&mode=$2 [NC]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^blog/(.+)$ ./blog/blog.php?page=$1 [NC]
    </IfModule>

  5. #5
    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: Mod rewrite is not Enable

    You get errors? If so, what?

    For one thing, you should have the line

    RewriteBase /

    just under

    RewriteEngine on
    Nothing is always absolutely so.

  6. #6
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Mod rewrite is not Enable

    Hello,

    Please try:
    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    
    Rewriterule ^blog/(.+)/(.+).html$ ./blog/view/blog.php?page=$1&mode=$2 [NC]
    Rewriterule ^blog/(.+).html$ ./blog/blog.php?page=$1 [NC]
    Rewriterule ^blog/(.+)/$ ./blog/view/blog.php?page=$1 [NC]
    Rewriterule ^blog/$ ./blog/blog.php [NC]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    Rewriterule ^blog/(.+)/(.+)$ ./blog/view/blog.php?page=$1&mode=$2 [NC]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^blog/(.+)$ ./blog/blog.php?page=$1 [NC]
    </IfModule>
    Added RewriteBase / under RewriteEngine on.


  7. #7
    mathkas39 is offline x10Hosting Member mathkas39 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    5

    Re: Mod rewrite is not Enable

    thank you

  8. #8
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Mod rewrite is not Enable

    No problem. Resolved. Closed.
    If you have any further issues please open a new ticket.


Closed Thread

Similar Threads

  1. Rewrite URL
    By claudeversace47 in forum Free Hosting
    Replies: 1
    Last Post: 03-06-2011, 04:35 PM
  2. url-rewrite HELP :-(
    By supajason in forum Programming Help
    Replies: 5
    Last Post: 06-18-2008, 04:10 AM
  3. Mod Rewrite Help?
    By Shadow121 in forum Off Topic
    Replies: 0
    Last Post: 12-30-2007, 06:07 PM

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