/    Sign up×
Community /Pin to ProfileBookmark

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!

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@priyankagoundSep 28.2013 — 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.
Copy linkTweet thisAlerts:
@youngdesignerauthorSep 28.2013 — 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.[/QUOTE]


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.
Copy linkTweet thisAlerts:
@youngdesignerauthorOct 02.2013 — BUMP - does anyone have any clue? I have been trying to figure it out, but I am not able to do so.
×

Success!

Help @youngdesigner spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...