Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: help with htaccess redirection

  1. #1
    MeetHere's Avatar
    MeetHere is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    430
    Blog Entries
    1
    Thanks
    66
    Thanked 27 Times in 24 Posts

    help with htaccess redirection

    Hi
    how can i redirect all the hits on my pages ending with index.php/blabla
    to index.php ?

    its for my wordpress blog.

    thanks in advance

  2. #2
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,428
    Thanks
    703
    Thanked 293 Times in 221 Posts
    Hi,

    As we know I'm a dummy but I hope this is what your looking for.

    How to setup a 301 Redirect

    Butterflies Forever

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  3. #3
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    Redirect 301 /index.php/blabla /index.php
    Submit new proxies -

  4. #4
    MeetHere's Avatar
    MeetHere is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    430
    Blog Entries
    1
    Thanks
    66
    Thanked 27 Times in 24 Posts

  5. #5
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    Quote Originally Posted by MeetHere View Post
    can anybody provide full code for me to copy-paste ?
    This is the full code.

    Code:
    Redirect 301 /index.php/blabla /index.php
    Submit new proxies -

  6. Thanked by:

    MeetHere (12 October, 2009)

  7. #6
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,401
    Thanks
    182
    Thanked 314 Times in 241 Posts
    MeetHere, the above code needs to be copy and pasted into a file named .htaccess that resides in the root directory of your web site. You may well already have this file on your site so download it first to edit rather than over-writing it. You can put the code right at the start of the file.

  8. Thanked by:

    m42 (9 October, 2010)

  9. #7
    MeetHere's Avatar
    MeetHere is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    430
    Blog Entries
    1
    Thanks
    66
    Thanked 27 Times in 24 Posts
    hi
    sorry for the dumb question, but i want to redirect every page ending with index.php/ to main page.

    e.g. http://mortgage-refinance-credit.com...php/readcredit
    mortgage-refinance-credit.com/index.php/whatcredit

    TO www.mortgage-refinance-credit.com/

    Above code is not working.

  10. #8
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,401
    Thanks
    182
    Thanked 314 Times in 241 Posts
    I'm still not clear on exactly what you want to do, but if you want to redirect any non-existent page to your home page, you can use an error 404 re-direct:

    Code:
    ErrorDocument 404 /index.php
    This should be placed at the top of the .htaccess file.

    There are better ways by using .htaccess rules though if you specify exactly what you want to happen.

  11. #9
    MeetHere's Avatar
    MeetHere is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    430
    Blog Entries
    1
    Thanks
    66
    Thanked 27 Times in 24 Posts
    I only want to redirect url's like (there are many of them)
    http://mortgage-refinance-credit.com...php/readcredit
    mortgage-refinance-credit.com/index.php/whatcredit

    TO www.mortgage-refinance-credit.com/

  12. #10
    Hol Mohida is offline Unknown Net Builder
    Join Date
    Sep 2009
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb

    well,
    it is easy to use in content management system which is written in php.in that XOOP is the very best tool for developing.

Page 1 of 2 12 LastLast

Similar Threads

  1. .htaccess
    By dodolls in forum Managing
    Replies: 6
    Last Post: 15 November, 2009, 06:58 AM
  2. Need Help with page redirection...
    By WebEvader in forum Programming
    Replies: 3
    Last Post: 4 October, 2009, 00:01 AM
  3. .htaccess help
    By Sami4u in forum Building
    Replies: 3
    Last Post: 14 September, 2009, 13:47 PM
  4. How to avoid blogger redirection window?
    By hendricius in forum Blogging
    Replies: 4
    Last Post: 31 August, 2009, 07:29 AM
  5. Need help with redirection...
    By WebEvader in forum Programming
    Replies: 5
    Last Post: 30 August, 2009, 21:05 PM

Tags for this Thread

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
  •