Forums

How do I find out if I have the mod_rewrite Apache module? (14 posts)

  1. TylorFamous
    Member
    Posted 3 years ago #

    I am kind of new to this, but I have a virtual server from godaddy. It uses PLESK to keep track of all the hosting and domains and has worked great for the numerous small websites that I put up for myself and other people.

    Recently I have been looking into WordPress. In order to turn on permalinks I need to have the mod_rewrite Apache module. This is a little beyond my realm of understanding and I was wondering if anyone could point me to the right direction on where to find out if I have this available.

    Godaddy will not give me any help as I didn't sign up for the premium support package or whatever.

    Any help would be greatly appreciated!

  2. Samuel B
    moderator
    Posted 3 years ago #

    Create a .htaccess containing the following and upload it to the root of your site:

    RewriteEngine On
    RewriteRule ^google.html$ http://www.google.com/ [R=301]

    Going to http://www.yoursite.com/google.html should redirect you to Google.com if you have it

  3. TylorFamous
    Member
    Posted 3 years ago #

    Wow, thanks for such a speedy response! I uploaded the .htaccess file and added the text you supplied. When I went to domainname.com/google.html I got a 404 error.

    So I guess this would mean that I don't have the mod_rewrite Apache module?

    Would you be able to suggest a hosting plan that you know that does have all of the required specs?

    Thanks again for all of your help!

  4. Samuel B
    moderator
    Posted 3 years ago #

    just ask godaddy to switch you to a linux hosting plan - they do this for free and you will be much happier with overall performance
    (using Linux Hosting Configuration 2.0 and PHP 5).

    if you want superb support - I recommend A Small Orange
    http://asmallorange.com/services/hosting/

  5. TylorFamous
    Member
    Posted 3 years ago #

    I called up Godaddy and you are correct. I am on a windows server. Unfortunately though, because it is a virtual dedicated server, they can't simply switch it over for me. I am going to have to go through the tedious process of moving all my files and resetting up all my domain names.

    I will definitely look into the hosting company you recommended though.

    Thanks for all your help!

  6. TylorFamous
    Member
    Posted 3 years ago #

    Hey, sorry to keep bugging you :) but I tried what you said, but this time on another server I know is linux.

    When I go to domain.com/google.html this is what I get

    Not Found
    The requested URL /google.html 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.33 Server at http://www.DOMAINNAME.com Port 80

    Any ideas what this means?

  7. Samuel B
    moderator
    Posted 3 years ago #

    <?php phpinfo(); ?>

    put that in notepad and save it as phpinfo.php
    upload it to site and call it in browser
    http://example.com/phpinfo.php
    see if mod_rewrite is installed or not

  8. TylorFamous
    Member
    Posted 3 years ago #

    I don't see anything listed as mod_rewrite (as in, it isn't even an option on the list). I do, however, see "url_rewriter.tags". I don't know if this is related at all but it's local and master value is a=href,area=href,frame=src,input=src,form=,fieldset=.

  9. Samuel B
    moderator
    Posted 3 years ago #

    ok - let's try one more thing

    replace the code I gave above for .htaccess with:

    Options +FollowSymLinks
    Redirect /google.html http://www.google.com

  10. TylorFamous
    Member
    Posted 3 years ago #

    Hey! I think we're getting somewhere! When I went to mydomain.com/google.html it redirected to google.

  11. TylorFamous
    Member
    Posted 3 years ago #

    From that information, do you know if mod_rewrite is installed?

  12. Samuel B
    moderator
    Posted 3 years ago #

    most definitely is

  13. WordPress Hosting
    Member
    Posted 3 years ago #

    mod_rewrite should be installed by all linux server by default.

  14. Samuel B
    moderator
    Posted 3 years ago #

    mod_rewrite should be installed by all linux server by default.

    he wasn't sure if he had linux or windows

Topic Closed

This topic has been closed to new replies.

About this Topic