How to chage the url in .htaccess file?

6 replies
Any one know... how to change a url with another alternative url in .htaccess file.
#chage #file #htaccess #url
  • Profile picture of the author Jimbrown123
    your question is not clear enough what do you want to ask so please explain in details that what you want to change in url?
    Signature
    PR-6 Web Links Directory - Submit Your Links/Articles Free
    Pufi Games - Games For Girls | Play Thousand of Games Online
    {{ DiscussionBoard.errors[9210799].message }}
  • Profile picture of the author torstenm
    Originally Posted by Catherine Mark View Post

    Any one know... how to change a url with another alternative url in .htaccess file.
    I suppose you want to do a redirect from an old URL to a new one. You can do it with the .htaccess file this way:

    Redirect 301 /oldURL.html http://www.example.com/newURL.html

    More examples you can find here:
    THE Ultimate Htaccess
    Signature
    {{ DiscussionBoard.errors[9210855].message }}
  • Profile picture of the author Jeff Lenney
    Hi Catherine

    I hope this helps!

    how to change the URL in htaccess file

    If I can help you with anything else like this - PLEASE don't hesitate to ask - I'm here to help!
    Signature

    Too lazy to write something clever here, so check out my marketing blog and learn from a REAL Super Affiliate at JeffLenney.com

    {{ DiscussionBoard.errors[9211089].message }}
    • Profile picture of the author Catherine Mark
      k thank you ....I got it...
      Signature

      Clone Scripts Provider Website for your Online Business.
      htttp://www.inoutscripts.com

      {{ DiscussionBoard.errors[9215818].message }}
  • Profile picture of the author SashaLee
    Hi there,

    I am running into a problem.

    Here's our htaccess file:


    # 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>

    Redirect 301 /subdomain_of_siteA/e_articles.html http://www.SiteA.com
    this gives us a 404 and further the URL that shows in the URL bar is:

    siteA.com/e-articles.com

    Which doesn't exist, hence the 404.

    But why is it not forwarding to the domain?

    Thank you in advance for any pointers,

    Sasha.
    {{ DiscussionBoard.errors[9301169].message }}
  • Profile picture of the author SashaLee
    Hi there,

    Yes, I am.

    We are trying to get the following domain:

    http://www.siteA.com/subdomain_of_siteA/e_articles.html

    to forward permanently to:

    http://www.SiteA.com

    Thanks for asking for clarification. This is really bugging us as to why it's not working.

    All the best,

    Sasha.
    {{ DiscussionBoard.errors[9301636].message }}

Trending Topics