dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Wordpress on SubDomain -- URL Rewrite?

  1. #1
    Join Date
    Oct 2006
    Location
    On the web, working on my website
    Posts
    184

    Wordpress on SubDomain -- URL Rewrite?

    Good evening,

    Please bare with me as I try to explain what I am trying to achieve. Let's say I have a domain titled domain.com. I placed a Wordpress blog in domain.com/journal. I then created a forwarding so that when visitors type in journal.domain.com they see the Wordpress blog. The problem is when they refresh, the url changes back to domain.com/journal. Do you know how to stop this from happening and to keep it as journal.domain.com?

    Thank you for your help!

  2. #2
    Join Date
    Sep 2013
    Posts
    221
    Try this.
    on the first page URL before the doctype or html tags put:

    <?php header("location: adlocationhere.php"); ?>

    Then on the ad page put this:

    <?php header("refresh:5;url=secondredirectafter5seconds.php"); ?>

    This will redirect your first page immediately and it will redirect your second page after 5 seconds. You can change the seconds as pe your requirement.
    Hope this helps.

  3. #3
    Join Date
    Oct 2006
    Location
    On the web, working on my website
    Posts
    184
    Quote Originally Posted by priyankagound View Post
    Try this.
    on the first page URL before the doctype or html tags put:

    <?php header("location: adlocationhere.php"); ?>

    Then on the ad page put this:

    <?php header("refresh:5;url=secondredirectafter5seconds.php"); ?>

    This will redirect your first page immediately and it will redirect your second page after 5 seconds. You can change the seconds as pe your requirement.
    Hope this helps.
    That actually didn't -_- I am not trying to create an ad page or anything.

    I am trying to make my Wordpress blog url look like journal.website.com/postid=1231.php rather than website.com/journal/postid=1231.php.

  4. #4
    Join Date
    Oct 2006
    Location
    On the web, working on my website
    Posts
    184
    BUMP - does anyone have any clue? I have been trying to figure it out, but I am not able to do so.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles