Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on mod_rewrite? in the Shared & Semi-Dedicated forum
I want to ask if mod_rewrite is enabled on the shared hosting. I know that on the features says that is supported, but when i ...

  1. #1
    JPC Member
    Join Date
    May 2007
    Posts
    2

    mod_rewrite?

    I want to ask if mod_rewrite is enabled on the shared hosting. I know that on the features says that is supported, but when i have uploaded my old site the rewrite was not working. When i run phpinfo i get no real information. The only information about modules is
    Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
    . The functions specifics to apache from php like apache_get_modules() are not even working! SO in the end the mod_rewrite is really enabled or not? And if is not how can i have it enabled. My server is sycorax.nocdirect.com.

  2. #2
    Old Hillbilly Connie's Avatar
    Join Date
    Sep 2001
    Location
    Hills of Missouri
    Posts
    2,648
    Mod_rewrite is enabled by default. If your having problems, I suggest you submit a support ticket.

    Forum Moderators - Jag Staff

    Spam Whackers Blog - Dedicated to fighting Spam and providing General SEO Tips
    Organize your Kitchen or purchase Kitchen Accessories at Condells
    Ihelpyou Forum - Dedicated to "Best Practices" SEO

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    PHP is running under CGI here, not as an Apache module, so Apache_get_modules does not work here.

    mod_rewrite definitely works, many folks use it extensively here.
    Good luck

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Test: if it isn't enabled, and you try to use it in your .htaccess, Apache will throw an error (500, IIRC), as soon as it sees the "RewriteEngine on" directive. So, upload such a .htaccess with noting in it but
    Code:
    RewriteEngine on
    and try a page, any page. If it works normally, you have mod_rewrite available to you and need to check your own rules set for your problem. If you see an error, have support fix mod_rewrite on your server.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  5. #5
    JPC Member
    Join Date
    May 2007
    Posts
    2
    it seems that my problem is elsewhere. I get an 404 error when using the rewrite from the site with the page not found "/home/user/public_html/index.php". And i have the index.php on this path. It may be probably because i still haven't transfered the domains from my previous host to point to my current account, and now i use the IP to see the site. And when i have put the full path in front of the index.php in .htacces was working fine.
    And thanks for the quick responses!

  6. #6
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by ictin View Post
    I get an 404 error when using the rewrite from the site with the page not found "/home/user/public_html/index.php".
    That's the exact 404 you got (other than that "user" will be your username)? Then you're not redirecting correctly. Apache doesn't see that first part; its root is the webroot. So to redirect to the page that one the file system is /home/user/public_html/index.php you tell Apache to go to /index.php .

    To show this: when I ask for www.gwaihir.net/nonsense I get this 404:
    Not Found
    The requested URL /nonsense was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    --------------------------------------------------------------------------------

    Apache/1.3.37 Server at www.gwaihir.net Port 80
    See how it refers to /nonsense, not to /home/user/public_html/nonsense ?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •