Forums

Is it possible to rewrite a URL to display a different path? (1 post)

  1. splashworx
    Member
    Posted 1 year ago #

    Maybe my topic title isn't correct but here's what I want to achieve (and perhaps best if I use the real example):

    I have numerous sites hosted on a server, with a primary domain pointing to a particular folder. I have just registered a second domain and wish to point that domain to a new site's folder (which I've done using cPanel).

    However, whenever a user calls up the new domain name, I want the browser to display the URL of the new domain only, i.e. not to show the full URL (which includes sub folder and primary domain).

    Actual WordPress installation:
    http://www.splashworxmultimedia.com.au/metalwordpress/

    New sub domain: http://www.heavymetaldiary.com
    Which points to the directory above. However I want the new sub domain to display in the browser address bar only, not the actual URL and sub folder.

    Example: http://www.heavymetaldiary.com/my-blog-post/
    instead of: http://www.splashworxmultimedia.com.au/metalwordpress/my-blog-post

    I've read about Apache's mod_rewrite but don't see reference to what I'm trying to achieve.

    Any thoughts? This must be a common issue for multiple installations..?

Topic Closed

This topic has been closed to new replies.

About this Topic