WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess question (5 posts)

  1. OperaManiac
    Member
    Posted 10 years ago #

    how do i make the server use a folder as an alias for a subdomain...
    for eg.
    I want the server to use: http://blog.sushubh.com/*.* for every request for http://www.sushubh.com/b2/*.* considering the sub-domain files are present in a folder blog on the server!
    Is this possible using the .htaccess file. I don't want to set up a redirection...

  2. otaku42
    Member
    Posted 10 years ago #

    Do you have access to the (apache?) configuration?

  3. otaku42
    Member
    Posted 10 years ago #

    In case of Apache you'd have to add a "VirtualHost" directive to the httpd.conf. I'm not sure if that would also work via .htaccess, but I doubt that. I don't know cpanelX at all, so I can't tell you if that will enable you to change the configuration as desired.

  4. OperaManiac
    Member
    Posted 10 years ago #

    well. could not find that file on my server though it's present on my local apache. there was a setting in the backend of a temporary/permanent redirection. So am trying that for now...
    Does modifying the conf file keeps the URL same with content picking from the other directories? or the URL chages to reflect the new path?!

  5. otaku42
    Member
    Posted 10 years ago #

    That depends on you. It's possible to add a new VirtualHost directive for blog.domain.com that behaves the same as http://www.domain.com/blog, without breaking Apache. But I guess you could run into troubles with your $blogpath variable in this setup...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.