0

How to configure .htaccess to this: I need that my home page is http://mydomain.cl/c/news/ but I cant do this. Anyone want help me please? Thanks!

Now, my htaccess is :

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php[L]
</IfModule>

END WordPress

2 Answers 2

0

Try this:

<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com [NC]
RewriteRule ^(.*)$ http://mydomain/.cl/c/news/.com/$1 [L,R=301]
</IfModule>
1
  • Please explain why this helps the OP – in an edit to your answer. Thanks.
    – kaiser
    Jul 3, 2016 at 23:54
0

Try to edit wp-config.php and add this line :

define('WP_HOME', 'http://your-domain.com/news');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.