+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 25 of 25

Thread: .htaccess Help and Tips

  1. #21
    Join Date
    Jun 2008
    Posts
    3
    .htaccess rewrite examples should begin with:
    Options +FollowSymLinks

    RewriteEngine On
    RewriteBase

  2. #22
    Join Date
    Nov 2005
    Location
    online
    Posts
    5,608
    You'd think I'd be better at these things but um.. I'm not.

    I'm trying to redirect

    oldsite.com/archive/anything.html

    to

    newsite.com/archives/anything.php (I can change this to .html if it would make things easier).

    I've got the redirect engine already turned on. Can someone help me out?

    Edit: Well, I changed the structure of the new site to match the old and got it working. Not quite what I was shootin for but it won't really affect things.
    Last edited by skitzzo; 07-21-2008 at 07:06 PM.

  3. #23
    Join Date
    Jun 2019
    Location
    Uganda
    Posts
    426

  4. #24
    Join Date
    Jan 2020
    Location
    United State
    Posts
    35
    Here are some of the most useful htaccess tips and tricks:
    - Set Timezone
    - SEO Friendly 301 Permanent Redirects
    - Skip the download dialogue
    - Skip www
    - Custom Error page
    - Compress files
    - Cache files
    - Disable caching for certain file type.

  5. #25
    Join Date
    Jan 2020
    Location
    United State
    Posts
    35
    Below are the rules you need to follow for the concerned:

    HTTP headers: connection & request:
    HTTP_ACCEPT
    HTTP_COOKIE
    HTTP_FORWARDED
    HTTP_HOST
    HTTP_PROXY_CONNECTION
    HTTP_REFERER
    HTTP_USER_AGENT
    AUTH_TYPE
    CONN_REMOTE_ADDR
    CONTEXT_PREFIX
    CONTEXT_DOCUMENT_ROOT
    IPV6
    PATH_INFO
    QUERY_STRING
    REMOTE_ADDR
    REMOTE_HOST
    REMOTE_IDENT
    REMOTE_PORT
    REMOTE_USER
    REQUEST_METHOD
    SCRIPT_FILENAME
    server internals: date and time: specials:
    DOCUMENT_ROOT
    SCRIPT_GROUP
    SCRIPT_USER
    SERVER_ADDR
    SERVER_ADMIN
    SERVER_NAME
    SERVER_PORT
    SERVER_PROTOCOL
    SERVER_SOFTWARE
    TIME_YEAR
    TIME_MON
    TIME_DAY
    TIME_HOUR
    TIME_MIN
    TIME_SEC
    TIME_WDAY
    TIME
    API_VERSION
    CONN_REMOTE_ADDR
    HTTPS
    IS_SUBREQ
    REMOTE_ADDR
    REQUEST_FILENAME
    REQUEST_SCHEME
    REQUEST_URI
    THE_REQUEST

+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3

Bookmarks

Posting Permissions

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