I tried it using .htaccess, but it didnt work. here is the code below.
PHP Code:
RewriteCond %{THE_REQUEST} ^GET .*/website.(php|html) HTTP
RewriteRule ^(.*)website.(php|html)$ /$1 [R=301,L]
Do anyone have any suggestions for doing this in php? The thing im confused about regarding redirecting a .php file to an .html file, is do i only need to write an .php file, and the contents in it will redirect to index.html, or should both files contain identical information? Thanks.