redirecting php file regardless of what is typed after url

I am somewhat new to php, JavaScript and all those languages involved in creating a website. I was wondering how to redirect no mater what you type after a given URL i.e. when I type something else after the following url Using custom rewrite rules in WordPress, it always redirects me to the same site. How is this accomplished?

Source: .htaccess

1 Comment

  1. Digin Dominic

    Add the following to your .htccess file and it will redirect all pages on you domain to

    RewriteEngine on
    RewriteRule (.*) [R=301,L]

    Or if you want to redirect all pages in a folder on your domain simply type:

    Redirect 301 /yourfolder


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.