Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2007
    Posts
    153
    Thanks
    3
    Thanked 2 Times in 2 Posts

    What's in this .htaccess code?

    Hi,

    In my website .htaccess I have this code, I've put it there but forgot why... can someone explain basically what the code does?

    RewriteCond %{HTTP_HOST} ^informationmarketingexpert\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.informationmarketingexpert\.com$
    RewriteRule ^infographics\/infographics\.html$ "http\:\/\/www\.informationmarketingexpert\.com\/infographics\.html" [R=301,L]

    RewriteCond %{HTTP_HOST} ^informationmarketingexpert\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.informationmarketingexpert\.com$
    RewriteRule ^infographics\/infobusiness\.html$ "http\:\/\/www\.informationmarketingexpert\.com\/infobusiness\.html" [R=301,L]

    RewriteCond %{HTTP_HOST} ^informationmarketingexpert\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.informationmarketingexpert\.com$
    RewriteRule ^infographics\/websiteconversion\.html$ "http\:\/\/www\.informationmarketingexpert\.com\/websiteconversion\.html" [R=301,L]
    Thanks

  2. #2
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    10,480
    Thanks
    6
    Thanked 1,230 Times in 1,200 Posts
    It redirects the URLs from [www.]informationmarketingexpert.com/infographics/infographics.html to www.informationmarketingexpert.com/infographics.html, and likewise for the other two, respectively.

  3. Users who have thanked VIPStephan for this post:

    lashley (10-22-2016)

  4. #3
    Regular Coder
    Join Date
    Jan 2007
    Posts
    153
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by VIPStephan View Post
    It redirects the URLs from [www.]informationmarketingexpert.com/infographics/infographics.html to http://www.informationmarketingexpert.com/infographics.html, and likewise for the other two, respectively.
    all right thanks
    Last edited by VIPStephan; 10-22-2016 at 09:14 PM. Reason: removed automatically created links


 

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
  •