Welcome to WebmasterWorld Guest from 54.162.155.183

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)

10+ Year Member Top Contributors Of The Month



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)

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



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)

10+ Year Member Top Contributors Of The Month



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

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



:: 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)

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



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

Featured Threads

Hot Threads This Week

Hot Threads This Month