+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with domain mod_rewrite

  1. #1
    tzoly164's Avatar
    tzoly164 is offline x10Hosting Member tzoly164 is an unknown quantity at this point
    Join Date
    Oct 2010
    Location
    Romania
    Posts
    6

    Question Help with domain mod_rewrite

    How can i make a mod_rewrite to redirect any subdomain to a file/folder

    like http://SOMEFILE.domain.com to be redirected to http://domain.com/SOMEFILE.html ???

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

    Re: Help with domain mod_rewrite

    You can't, because that requires setting up a virtual host, and you don't have access to those settings. Instead, you can set up a subdomain in cPanel to map a host name to a directory. If you want this to be visible to visitors (i.e. a redirect), you can create an .htaccess file in the directory to redirect to the page on the main domain.
    Last edited by misson; 11-25-2011 at 01:39 AM.
    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.

  3. #3
    tzoly164's Avatar
    tzoly164 is offline x10Hosting Member tzoly164 is an unknown quantity at this point
    Join Date
    Oct 2010
    Location
    Romania
    Posts
    6

    Re: Help with domain mod_rewrite

    Ok, thank you

+ Reply to Thread

Similar Threads

  1. mod_rewrite help please? :D
    By aaron.king2783 in forum Programming Help
    Replies: 2
    Last Post: 11-19-2011, 07:37 AM
  2. mod_rewrite
    By a.gavrilescu66 in forum Free Hosting
    Replies: 1
    Last Post: 04-02-2011, 09:01 AM
  3. mod_rewrite
    By zh00mradio58 in forum Free Hosting
    Replies: 2
    Last Post: 03-29-2011, 01:59 PM
  4. mod_rewrite
    By mach1korea17 in forum Free Hosting
    Replies: 1
    Last Post: 10-23-2010, 08:02 PM
  5. mod_rewrite
    By demiselegion in forum Free Hosting
    Replies: 1
    Last Post: 05-13-2008, 08:40 AM

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