• Resolved mehargags

    (@mehargags)


    Hi, I maintain a busy (old) site for a client with hundreds of HTML pages and PHP scripts running in it. Their Marketing team wants to run a blog under the URL domain.com/blog but I was wondering, just to keep it safe and isolated (from FTP), can I install WordPress under blog.domain.com yet still be able to run the blog using WP SiteURL as domain.com/blog ?

    The Marketing guys are adamant they want the blog to be seen as from the SubDir and not from a subdomain… suggest ways I can keep WP installation “out off” the main site’s directory. Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • If I am understanding correctly…

    I do that by simply adding the sub-folder containing WordPress (with its own database, SQL user and wp-config.php file) and then going to it with ‘www.domain.com/sub-folder’ after adding RewriteBase /sub-folder/ to its htaccess in the sub-folder:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /sub-folder/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Hi Mehaargs

    Being seen as subdomain like blog.mycompany.com is quite a common client question, but needs some quite big overhaul with DNS, post copy/paste or database transfer, so on.

    Again, if you have no idea on how to do it, ask a good local freelance to come in your company for 1/2 weeks to help you on transition.

    Yes, that kind of project can be big if you have a lot of content not yet in WP, and data transfer from old software or so.

    A serious and good provider will tell you that in house in your company (i do that often, that kind of projects) and how to interface with dns to tell the it guys.

    Hope it helps,

    Thread Starter mehargags

    (@mehargags)

    @digico Paris,
    thanks for your explanation, I’m ok to hire someone — but its just a small things for a small site, not big data.

    my email is [email protected]

    Thread Starter mehargags

    (@mehargags)

    Well, sometimes the solution is right under your nose and we can’t make out. All I did was add this line to my Apache conf and it worked right away

    Alias /blog /home/abc.blog/blog/

    placed WP files in folder “blog” as /home/domain.com/blog outside of public_html directory

    fyi… this is a fresh blog that is yet to be started so there is no data or url links that may go dead.

    @mehararfs

    yes true ?? but, I undesrtand every server is different too, and whith special needs,

    about fresh blog, my 2 cents, only fresh if you update it quite often..

    medium would be a nice thing to try too if you wanna write a lot for free

    Anyways, glad you fixed the issue, we can mark it as resolved.

    Thread Starter mehargags

    (@mehargags)

    I already did mark it resolved… didn’t I ?

    Yes you did thanks:) I just didn’t see it sorry

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘install WP in subdomain but make it appear as domain/blog’ is closed to new replies.