www.webdeveloper.com
Results 1 to 7 of 7

Thread: need help with .htaccess re-write

  1. #1
    Join Date
    Nov 2010
    Posts
    64

    need help with .htaccess re-write

    i have this in my .htaccess

    RewriteEngine on

    RewriteRule ^http://www.website.com/name1$ http://www.website.com/name1/name2

    and everytime i test to see if it works it shows http 404 not found what i am doing work or missing these arent php files they .html files i am tryin to rewrite... thanks

  2. #2
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    Are you entering the entire file name in the RewriteRule or just the folder?

  3. #3
    Join Date
    Nov 2010
    Posts
    64
    i am entering the entire url name like above... how is it suppose be written?

  4. #4
    Join Date
    Nov 2010
    Posts
    64
    Quote Originally Posted by bathurst_guy View Post
    Are you entering the entire file name in the RewriteRule or just the folder?
    isorry i miss read what you were saying its in my main directory where the file is located as well
    Last edited by rusty813; 11-28-2010 at 05:21 PM.

  5. #5
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    Try:
    Code:
    RewriteEngine on
    
    RewriteRule ^http://www.website.com/name1.html$ http://www.website.com/name1/name2.html

  6. #6
    Join Date
    Nov 2010
    Posts
    64
    nothing happen still http 404

  7. #7
    Join Date
    Nov 2010
    Posts
    64
    anyone available to help

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles