New Posts
Welcome guest, is this your first visit?
  • Login:
CakePoker.com Affiliate Program
+ Reply to Thread
Results 1 to 6 of 6

Thread: htaccess help

  1. #1
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    448
    Feedback Score
    6 (100%)

    Default htaccess help

    Hi,

    Could someone help me with my htaccess file, i just want someone that know this to see it, and tell me if it OK

    It's non www to www, /index.php to / and url mapping.

    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^website\.com$ [NC]
    RewriteRule ^(.*)$ http://www.website.com/$1 [R=301,L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
    RewriteRule ^index\.php$ http://www.website.com/ [R=301,L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+\.)+php\ HTTP
    RewriteRule ^(.+)\.php$ http://www.website.com/$1 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ $1.php [L,QSA]

    EDIT:
    Damn, wrong section, move it if you want.
    Last edited by sirtiner; 01-24-2009 at 04:59 PM.
    Gambling Revolutions

    Are you in need of nice looking poker chips? or maybe something else
    Gambling Products Recreation

    Swedish poker site with poker bonus and reviews.

  2. #2
    MAC
    MAC is offline
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Dec 2008
    Location
    Spain
    Posts
    199
    Feedback Score
    0

    Default

    I am not an htacces expert just average but I think I miss some info.

    Which is the objective of the rewriting/redirecting. You want every request to an old site be 301ed to website.com?

  3. #3
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    448
    Feedback Score
    6 (100%)

    Default

    It's non www to www, /index.php to / and url mapping.

    and also Is it okey to add this to make /index to /

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/
    RewriteRule ^index\.php$ http://www.website.com/ [R=301,L]

    Want someone that knows this to okey it
    Gambling Revolutions

    Are you in need of nice looking poker chips? or maybe something else
    Gambling Products Recreation

    Swedish poker site with poker bonus and reviews.

  4. #4
    PENQUIN
    Go F@@K Yourself
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,375
    Blog Entries
    1
    Feedback Score
    60 (100%)

    Default

    Are you trying to have the /index.php/ to become just / ?
    and website.xxx to be www. website.xxx?

    I have those in my htaccess to be like this below.


    RewriteRule ^index.php/(.+) $1 [R=301,L]

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example.com [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
    Play Poker Online with some of best poker rooms in the business.
    __________________
    bwin - Rogue
    Learn why Bewinners is a predatory affiliate program.

  5. #5
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    448
    Feedback Score
    6 (100%)

    Default

    Well, i have this code now and it works, but i'm no expert and i did not do this myself so i just want someone that know this to say that its 100% correct.

    even tho everything work there might be something wrong? not 100%?
    Gambling Revolutions

    Are you in need of nice looking poker chips? or maybe something else
    Gambling Products Recreation

    Swedish poker site with poker bonus and reviews.

  6. #6
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Ireland
    Posts
    112
    Feedback Score
    10 (100%)


 

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. htaccess questions
    By Squizzel in forum Wordpress - Web Design - Coding - Technical
    Replies: 1
    Last Post: 03-11-2010, 07:15 PM
  2. HtAccess Clean Up
    By LadyHoldem in forum Wordpress - Web Design - Coding - Technical
    Replies: 8
    Last Post: 01-07-2010, 05:59 PM
  3. Need help Urgently! htaccess
    By MPC in forum Wordpress - Web Design - Coding - Technical
    Replies: 12
    Last Post: 08-13-2009, 10:57 AM
  4. Another htaccess question
    By MPC in forum Wordpress - Web Design - Coding - Technical
    Replies: 7
    Last Post: 07-31-2009, 04:54 PM
  5. htaccess problems
    By Hazo in forum Wordpress - Web Design - Coding - Technical
    Replies: 6
    Last Post: 02-05-2009, 06:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant