Jump to content

Cre8asiteforums Internet Marketing
and Conversion Web Design


.htaccess Not Working As Intended

  • Please log in to reply
3 replies to this topic

#1 mrgoodfox


    One Who Engineers

  • Moderators
  • 1078 posts

Posted 23 November 2011 - 07:51 PM

I put the following code in my .htaccess file on the BuyHookah.com server.

RewriteEngine On
redirect 301 / http://www.hookahlounge.net/

but the following page is not being redirected. Why? http://www.buyhookah...t_Flavor_Review

For example the homepage is redirecting fine: http://www.buyhookah.com/

#2 jonbey


    Eyes Like Hawk Moderator

  • Moderators
  • 4756 posts

Posted 23 November 2011 - 08:37 PM

I am not hot on this, but maybe you need a mod rewrite, not redirect. Maybe that only redirects the homepage?

Maybe give this a whirl:

RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]

Source: http://webdesign.abo...e_redirects.htm

#3 glyn


    Sonic Boom Member

  • Hall Of Fame
  • 3259 posts

Posted 24 November 2011 - 04:21 AM


Probably you will never have another htaccess question again.


#4 Black_Phoenix


    Honored One Who Served Moderator Alumni

  • Hall Of Fame
  • 1269 posts

Posted 24 November 2011 - 02:43 PM

Hi I had issues a while back with this and this works for me

redirect 301 /folder-name/page.htm http://www.yoursite....r-name/page.htm

note no full url on first section of the 301, I would recommend putting two dummy pages up on the server and test it :)

Let us know how you get on...


RSS Feed

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users