Change base link to website using .htaccess file

can edit the .htaccess file. Is the base address of the site for the entire link on the main page changed?

scenario : my osclass is hosted in the showhift cloud with the url http://myappdomain.rhcloud.com After adding a server-side alias, I use www.mydomain.com with a redirect masking function. Successfully suitable for the home page. But a problem is when a user clicks on any link on a website. Changing the URL of the browser URL from www.mydomain.com to http://myappdomain.rhcloud.com/link instead of www.mydoamin.com/link.but, if the user manually dials www.mydomain.com/link, he works and it stays the same, not changing to http://myappdomain.rhcloud.com/link in the browser url. Hover over links and show http://myappdomain.rhcloud.com/linkand not www.mydomain.com/link I’m even trying to edit the config.php file

define('WEB_PATH', 'http://www.mydomain.com/');

but it does not work. I can say if this can happen with editing the .htaccess file with minimal effect or in some other way. Ask someone to try to roll forward for osclass earlier with a custom domain? wordpress and osclass are pretty similar in architecture. Do you have Wordpress users on the opening face of such a problem?

0
source share
1 answer

Please note that .htaccess only changes the way the visitor processes the request. It does not modify the contents of your website. Therefore, you can never change your “hang result” with .htaccess settings.

I think it depends on how the links are created on your site:

  • HTML , . MySQL, REPLACE.

  • , , . , WEB_PATH .

+1

All Articles