/    Sign up×
Community /Pin to ProfileBookmark

url redirection

hi there

if we give [url]www.example.com[/url] or [url]http://example.com[/url] the site should point to [url]www.example.com[/url]. what should be done to make this work.should we change the configuration in the server. plz help.

thanks
keats

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@deep_dhyaniFeb 21.2006 — use htaccess to redirect your site , it will be easy & you can apply in all the urls with a single htaccess file
Copy linkTweet thisAlerts:
@keerthiauthorFeb 21.2006 — it would be helpfull for me if i could get the code for this...
Copy linkTweet thisAlerts:
@ShrineDesignsFeb 21.2006 — personally, i wouldn't even bother with it, both URL are correct

"why fix it if it ain't broke"
Copy linkTweet thisAlerts:
@keerthiauthorFeb 21.2006 — actually the site url doesnt pull the website if i give without www.

it redirects to cpanel .

couldnt find wt is happening
×

Success!

Help @keerthi 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.19,
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,
)...