Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

.HTACCESS redirect

Options

Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    RewriteRule ^yes/?$ otherpage.html [L]


  • Registered Users Posts: 1,127 ✭✭✭smcelhinney


    Do you have to turn the RewriteEngine on in htaccess?

    You can also do this through httpd.conf if you have access to it. Personally, I keep all my redirects in one file called redirects.conf, and include this in httpd.conf. Handy if you're not used to editing httpd.conf, or you want to prevent changes to it (assuming you've already put the include directive in it!).

    Should use httpd.conf if your hosting provider allows you access to it.


  • Closed Accounts Posts: 1,200 ✭✭✭louie


    yes you do


  • Registered Users Posts: 568 ✭✭✭phil


    If it's a simple redirect, simply use Apache's Redirect directive.

    http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirect


Advertisement