Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Soo close

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #27270
    AlCapone
    Participant

    Can someone please finish this off for me its soo close but i have been working on it all day and i can’t get it to work.
    This is the code i have so far.

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^thedailyjoke.co.uk [NC]
    RewriteRule ^(.*)$ http://www.thedailyjoke.co.uk/$1 [L,R=301]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{PHP_SELF} !^/index.php
    RewriteRule ^(.*)$ http://www.thedailyjoke.co.uk/$1 [L]

    It’s inside a .htaccess file.

    The first 3 lines are fine – they change the url and force it to be in this format, http://www.mysite
    Its the other lines that wont work, someone will enter this as the url, http://www.mysite.co.uk/hello and i want the .htaccess file to redirect the browser to the hompage. I’m pretty sure i have tried everything! At the moment with this code the browser is redirected to an error page, you can try it here, http://www.thedailyjoke.co.uk/iehoih

    I have no idea what to do.
    Please Help
    Many Thanks
    Chris

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.