• The Facebook Platform

Page 1 of 2 12 LastLast
Results 1 to 5 of 7
  1. #1
    Join Date
    Jan 2010
    Location
    Lahore, Pakistan
    Age
    25
    Posts
    3,818
    Points
    6,772.51
    Rep Power
    10000

    Default Redirect URLs using .htaccess

    The Apache web server provides several way for setting up redirects.

    The most simple one is using the “Redirect” directive:


    Code:
    Redirect /folder http://www.example.com/newfolder
    With such a line in your .htaccess if a visitor tries to load , he will be redirected to.

    Recently it has been talked a lot about Permanent redirects. The good news is that you can add a status code to the Redirect directive. For example for Permanent 301 redirect you can use

    Code:
    Redirect permanent /folder http://www.example.com/newfolder
    Another useful directive is the RedirectMatch. With it you can use regular expressions in the redirect condition. For example
    Code:
    RedirectMatch "\.html$" http://www.example.com/index.php
    This will redirect all requests to files that end with .html to the index.php file.





    Last edited by Їийоcёйт Кїllєґ; 01-27-2012 at 12:03 AM.
    Find Me On Social Networks

    Facebook | Twitter | Google+


  2. #2
    Join Date
    Feb 2011
    Posts
    16
    Points
    16.15
    Rep Power
    23

    Default

    I am facing problem about .htaccess redirection with different country domains.

  3. #3
    Join Date
    Jan 2010
    Location
    Lahore, Pakistan
    Age
    25
    Posts
    3,818
    Points
    6,772.51
    Rep Power
    10000

    Default

    Quote Originally Posted by aliraza167 View Post
    I am facing problem about .htaccess redirection with different country domains.
    For Country base redirection mi recommend use PHP/Ajax not .htaccess
    Find Me On Social Networks

    Facebook | Twitter | Google+


  4. #4
    Join Date
    Aug 2014
    Location
    pakistan
    Posts
    2
    Points
    2.00
    Rep Power
    0

    Default Re: Redirect URLs using .htaccess

    Thanks for sharing your tip but some time .ht access doesn't work until your file root not in right place.

  5. #5
    Join Date
    Dec 2014
    Posts
    3
    Points
    3.00
    Rep Power
    0

    Default Re: Redirect URLs using .htaccess

    thanks man, i have been trying to fix it for like a week but finally. do you know how to set redirection in free wordpress?


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •