homepage Welcome to WebmasterWorld Guest from 107.20.25.215
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Redirect one url to another using htaccess how?
born2run




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

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

 

lucy24




msg:4640047
 6:47 am on Jan 25, 2014 (gmt 0)

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.

born2run




msg:4640048
 6:49 am on Jan 25, 2014 (gmt 0)

The CMS is drupal Lucy

lucy24




msg:4640073
 11:23 am on Jan 25, 2014 (gmt 0)

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

g1smd




msg:4640215
 11:26 pm on Jan 25, 2014 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved