Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nawranj

    (@nawranj)

    Wow thank you very much for taking the time to help me! It means a lot! Do you have a better suggestion? I mean right now the code is doing what I want it to, but if you feel there is a better solution to this, I am all open to suggestions!

    Edit: Ok so I just used the modified code that you suggested, and it pretty much nullified Mod_redirect, as it went back to the original example.com/en link whenever I enter example.com/Festival. Where as right now, Mod_redirect is working well with the snippet of Mod_rewrite.

    Thread Starter nawranj

    (@nawranj)

    Hmmmm so I just resolved the issue with a very simple line that made me laugh:

    RedirectMatch 301 ^/Festival$ http://example.com/en/Festival

    It did exactly what I wanted it to do! Case closed!

    Thread Starter nawranj

    (@nawranj)

    Sure thing, here it is:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.example\.com$
    RewriteRule ^/?$ "http\:\/\/example\.com\/en" [R=301,L]
    
    # to protect wp-config.php
    <Files wp-config.php>
    order allow,deny
    deny from all
    </Files>
    
    # to protect the .htaccess file itself:
    <Files .htaccess>
    order deny,allow
    deny from all
    </Files>
    Thread Starter nawranj

    (@nawranj)

    Thank you for the help, but it didn’t work.. anyone has a solution for this?

Viewing 4 replies - 1 through 4 (of 4 total)