Results 1 to 10 of 10
  1. #1
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default Why 301 Redirect Does Not Work

    Anyone have an idea why all of the sudden my 301 redirects would not work in my htaccess file?

    For example I have the below in my htaccess but it returns a 404 Not Found Error.

    Redirect 301 /live-dealer-games/live-dealer-games/ https://www.livecasinousa.com/live-dealer-games/
    Redirect 301 /live-dealer-games/live-european-roulette/ https://www.livecasinousa.com/live-d...ette/european/
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  2. #2
    robyroy is offline Private Member
    Join Date
    March 2009
    Location
    Somewhere on this earth
    Posts
    235
    Thanks
    11
    Thanked 42 Times in 32 Posts

    Default

    Hey.
    Try to add this sentence

    RewriteEngine On

    before


    Redirect 301 /live-dealer-games/live-dealer-games/ https://www.livecasinousa.com/live-dealer-games/
    Redirect 301 /live-dealer-games/live-european-roulette/ https://www.livecasinousa.com/live-d...ette/european/

    if still not working, drop me an email with your cpanel credentials and i will try to help you

  3. #3
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,098
    Thanks
    433
    Thanked 2,333 Times in 1,555 Posts

    Default

    Quote Originally Posted by robyroy View Post
    RewriteEngine On
    Using Redirect 301 doesn't use mod_rewrite so you don't need to enable the module. That's my understanding, at least.
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  4. #4
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,098
    Thanks
    433
    Thanked 2,333 Times in 1,555 Posts

    Default

    Travis - can you post your full htaccess file so we can see what's going on?

    There's other common errors that you can check to troubleshoot:

    1. Are there multiple htaccess files?

    2. Is the file extension correct (eg: is it actually .htaccess or has it been changed to htaccess.txt by mistake)
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  5. #5
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default

    There are 2 other .htaccess files but they must have been added by my hosting company (BlueHost) but I cannot even open them with Filezilla. I tried changing them by removing the . but that didn't work. They are named .htaccess.phpupgrader.cbaa4925 and .htaccess.phpupgrader.initial

    Here is the entire .htaccess file

    # AddHandler application/x-httpd-eig-php52 .php
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_URI} /(.+)/$
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ xhttps://www.livecasinousa.com/%1 [R=301,L]


    RewriteCond %{REQUEST_URI} !(.+)/$
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+)$ https://www.livecasinousa.com/$1/ [R=301,L]


    RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR,NC]
    RewriteCond %{https} off
    RewriteRule ^(.*)$ https://www.livecasinousa.com/$1 [R=301,L]


    Redirect 301 /go/coolcat/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/drake/ https://www.drakecasino.eu?refer=19549
    Redirect 301 /go/cryptoreels/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/dreams/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/betonline/ https://record.commissionkings.ag/_W...ZgqdRLk/39964/
    Redirect 301 /go/sportsbetting/ https://record.commissionkings.ag/_W...ZgqdRLk/39964/
    Redirect 301 /go/wild/ https://record.commissionkings.ag/_W...ZgqdRLk/39964/
    Redirect 301 /go/bovegas/ https://go.affiliatesleague.com/visi...campaign=54009
    Redirect 301 /go/planet7/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/5dimes/ https://record.commissionkings.ag/_W...ZgqdRLk/39963/
    Redirect 301 /go/blackdiamond/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/ignition/ https://record.revenuenetwork.com/_s...mNd7ZgqdRLk/2/
    Redirect 301 /go/bovada/ https://record.revenuenetwork.com/_s...WNd7ZgqdRLk/2/
    Redirect 301 /go/sloto/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/goldenlion/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/supernova/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /go/lasvegas/ https://www.lasvegasusa.eu/Remote/Ai...d=0&bannerID=0
    Redirect 301 /go/vegascrest/ https://record.vistagamingaffiliates...7ZgqdRLk/2043/
    Redirect 301 /go/vegas2web/ https://trace.affiliateedge.com/visi...=livecasinousa
    Redirect 301 /blog/2016/02/06/our-best-usa-live-dealer-casino/ /blog/our-best-usa-live-dealer-casino/
    Redirect 301 /blog/2016/03/01/find-the-highest-limits/ /blog/find-the-highest-limits/
    Redirect 301 /blog/2016/02/06/get-usa-casino-deposits-approved/ /blog/get-usa-casino-deposits-approved/
    Redirect 301 /blog/2016/02/11/check-out-the-dreams-live-casino/ /blog/check-out-the-dreams-live-casino/
    Redirect 301 /blog/2016/02/06/welcome-to-our-blog/ /blog/welcome-to-our-blog/
    Redirect 301 /casino-banking/jcb.php/ https://www.livecasinousa.com/casino-banking/
    Redirect 301 /sportsbetting-review/ https://www.livecasinousa.com/sportsbetting-casino/
    Redirect 301 /live-dealer-games/live-dealer-games/ https://www.livecasinousa.com/live-dealer-games/
    Redirect 301 /live-dealer-games/live-european-roulette/ https://www.livecasinousa.com/live-d...ette/european/
    Redirect 301 /live-games/ https://www.livecasinousa.com/live-dealer-games/


    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php80” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php80___lsphp .php .php8 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
    Last edited by TravG; 17 February 2023 at 11:37 am.
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  6. #6
    robyroy is offline Private Member
    Join Date
    March 2009
    Location
    Somewhere on this earth
    Posts
    235
    Thanks
    11
    Thanked 42 Times in 32 Posts

    Default

    this is strange. Maybe you can try redirect this pages with "problems" using this plugin: https://wordpress.org/plugins/redirection/

  7. #7
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,098
    Thanks
    433
    Thanked 2,333 Times in 1,555 Posts

    Default

    Most actually work fine. There's a couple that aren't working because the slash is being removed - for example:

    https://www.livecasinousa.com/live-d...-dealer-games/

    is becoming

    https://www.livecasinousa.com/live-d...e-dealer-games

    See: https://wheregoes.com/trace/2023756311/

    Same with /live-games/ which redirects to /live-games

    Which is why it's not triggering the redirect rule (because it's not the URL).
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  8. #8
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default

    Quote Originally Posted by baldidiot View Post

    See: https://wheregoes.com/trace/2023756311/

    Same with /live-games/ which redirects to /live-games

    Which is why it's not triggering the redirect rule (because it's not the URL).
    Ok, yea I see what you mean. But why is it redirecting to that (without the slash) when I clearly have it redirecting to https://www.livecasinousa.com/live-dealer-games/
    I dont understand why it is doing that??
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  9. #9
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default

    I actually got it working. I removed

    RewriteBase /
    RewriteCond %{REQUEST_URI} /(.+)/$
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ xhttps://www.livecasinousa.com/%1 [R=301,L]

    And now its working. It appears it is also redirecting the non-slash version to the slash version so I am not sure why I had that piece in the file anyway??? I thought it was to do that.....
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  10. #10
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,098
    Thanks
    433
    Thanked 2,333 Times in 1,555 Posts

    Default

    Oh yeah, sorry I meant that an earlier rule was removing the slash which is why it wasn't matching (as the rules would trigger in order).

    Glad you got it fixed!
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •