Group29.com - What did you expect?
  Create an account
:: Home  ::  Downloads  ::  Your Account  ::  Forums  ::
Google Adsense
Modules
  • Home
  • Downloads
  • ExpectationReviews
  • Forums
  • Group29 FAQ
  • MovieReviews
  • OtherReviews
  • Stories Archive
  • Submit News
  • Top 10
  • Topics
  • Web Links
  • New at Group29
    ·2018 UCLA vs USC preview
    ·Expectation Review: Avengers: Infinity War [24]
    ·Movie Review: Star Wars: The Last Jedi [16]
    ·Movie Review: Star Wars: The Last Jedi [23]
    ·2017 USC vs UCLA preview
    ·Forum Topic: Update your Facebook property
    ·Expectation Review: Star Wars: The Force Awakens [29]
    ·Web Link: WEP Key Converter
    ·Forum Topic: Why does my IPA file get saved as a zip file in IE?
    ·Web Link: BeyondCompare

    read more...
    TheForce.Net
    ·Rebelscum Breast Cancer Awareness Charity Patch
    ·BBC Interviews J.J. Abrams About Trek And Wars
    ·CEII: Jabba's Palace Reunion - Massive Guest Announcements
    ·Fathead's May the Fourth Be With You!
    ·Star Wars Night With The Tampa Bay Storm Reminder
    ·Stephen Hayford Star Wars Weekends Exclusive Art
    ·ForceCast #251: To Spoil or Not to Spoil
    ·New Timothy Zahn Audio Books Coming
    ·SDCC: Exclusive Black Series Boba Fett With Han In Carbonite Set
    ·Star Wars Art Exposition May 4th

    read more...
    Hot trends
    ·Group29.com

    read more...
    Group29 Discussion Board :: View topic - Using Apache .htaccess to Redirect 301 and 302
    Log in Register Forum FAQ Memberlist Search
    Ratings, Links, Free Speech and more

    Group29 Discussion Board Forum Index -> Group29 Tech Tips -> Using Apache .htaccess to Redirect 301 and 302
    Post new topic  Reply to topic View previous topic :: View next topic 
    Using Apache .htaccess to Redirect 301 and 302
    PostPosted: Wed Jan 19, 2005 9:21 am Reply with quote
    BB
    Regular
     
    Joined: Jun 23, 2004
    Posts: 340


      


    If your web site has changed and you want to make sure that users go to the correct pages, you have an option if you are using the Apache web server.

    This particular example is for Apache 2.0.

    Redirection of web requests is handled through the Apache mod_alias module.
    http://httpd.apache.org/docs-2.0/mod/mod_alias.html

    Note from Apache:
    Quote:
    mod_alias is designed to handle simple URL manipulation tasks. For more complicated tasks such as manipulating the query string, use the tools provided by mod_rewrite


    The old Group29 web site was purely static HTML pages. With the conversion to a content management system, all the pages are dynamically generated with distinct URLs.

    Here is an example of three redirects done on the Group29 web site using an .htaccess configuration file:

    Code:
    Redirect 301 a.html http://www.group29.com/modules.php?name=MovieReviews&rop=A
    Redirect 301 /index.html http://www.group29.com/index.php
    Redirect 301 /about.html http://www.group29.com/modules.php?name=FAQ


    The Redirect 301 tells any web search bots that this is a permanent redirection. So for Group29, all of the old movie reviews that used to be on the a.html page, can not be accessed by the modules.php?name=MovieReviews&rop=A page. This URL is a command to select all the "A" movie reviews from the database.


    Apache has a tutorial about the use of .htaccess files with their 2.0 web server.
    http://httpd.apache.org/docs-2.0/howto/htaccess.html

    Here is a link to the mod_rewrite tutorial:
    http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
    View user's profile Visit poster's website
    Using Apache .htaccess to Redirect 301 and 302
      Group29 Discussion Board Forum Index -> Group29 Tech Tips
    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot vote in polls in this forum
    All times are GMT - 6 Hours  
    Page 1 of 1  

      
      
     Post new topic  Reply to topic  


    Powered by phpBB © 2001-2003 phpBB Group
    Theme created by Vjacheslav Trushkin
    Forums ©
    Group29 Productions

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.


    You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php


    PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
    Page Generation: 0.21 Seconds

    :: HeliusGray phpbb2 style by CyberAlien :: PHP-Nuke theme by www.nukemods.com ::