htaccess redirect assistance
Dear all,
I am a developer and have an account set up on cPanel.
I have 2 environments, a demo subdomain, and the main domain for production.
So example; demo.example.com -> /home/demo/ (outside public_html)
and movies.com -> public_html
I have the following htaccess file:
RewriteEngine on
RewriteEngine on
# let the PHP knows that the mod_rewrite module is ENABLED.
RewriteCond %{HTTPS} off
RewriteRule (.*) -
Hi, The code you gave may work as expected, but the thing is there are lot of such codes available and it differs slightly from CMS to CMS, like for wordpress some of these codes work and the same does not work as expected for Joomla site. You will have to check what best suits your website requirement. You can also use some plugins for your CMS if you are using one and then check.. 0 -
Hello, You can find examples of how to do this on the following threads: Thank you. 0
Please sign in to leave a comment.
Comments
2 comments