Welcome to WebmasterWorld Guest from 54.162.168.187

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Redirect one url to another using htaccess how?

     
4:01 am on Jan 25, 2014 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:506
votes: 3


Hi,

I have a url named as following:

http://www.example.com/celebrity

I want all users who go to the url above be directed to the following url:

http://www.example.com/gossip

Should I use htaccess to do this? if so, how?

Or should I use the CMS to do the redirect?

Sorry if this is the wrong forum.

Any assistance would be greatly appreciated.

Regards,
Kip
6:47 am on Jan 25, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13674
votes: 439


Or should I use the CMS to do the redirect?

"the CMS" = an existing CMS that your site already uses? Has it got a plugin or control panel or other doodad that creates redirects for you? If so, you may as well use it.

The alternative is to fine-tune the htaccess that your CMS has already created, and put in new rules by hand. This is a better approach in the long term-- but it's also scarier and more work :)

This is pretty certainly the wrong forum to ask. But so far we don't know whether the right forum is Apache or Content Management, so let's wait and find out.
6:49 am on Jan 25, 2014 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Dec 19, 2004
posts:506
votes: 3


The CMS is drupal Lucy
11:23 am on Jan 25, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13674
votes: 439


:: wandering off in search of a moderator ::

I don't speak drupal, but I know who does ;) You've got mountains of plugins and addons and control panels and customization options, right?
11:26 pm on Jan 25, 2014 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


If it;s just this one URL, add one RewriteRule near the beginning of all your htaccess rules and you're done.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members