Please help me check this ".htaccess" code.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Please help me check this ".htaccess" code.

    For some reasons i don't understand, this .htaccess code is not working to my satisfaction. Someone please help me check and tell me whats wrong.


    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On # Turn on the rewriting engine
    RewriteBase /
    #DO NOT EDIT THIS IF YOU ARE A NEWBIE!!!!!!!!!!!!!
    RewriteRule ^register/([^-]+)$ http://site.net/Admin/register.php?catch=$1 [NC,L] # Handle requests for "REGISTER"
    RewriteRule ^verify/([^-]+)/([^&]+)$ http://site.net/Admin/verifyAccount.php?catch=verify&un=$1&vcode=$2 [NC,L] # Handle requests for "VERIFICATION"
    RewriteRule ^verify/$ http://site.net/Admin/verifyAccount.php?catch=verify&un=&vcode= [NC,L]
    RewriteRule ^cats/$ http://site.net/Admin/index.php [NC,L]
    </IfModule>

    It directs fine but after that i still see url the way i don't want it to.

    Thanks in advance.

    #2
    Does your host provider allows it?
    mysterio.al - programming is a functional art

    Comment


      #3
      Originally posted by Mysterio3 View Post
      Does your host provider allows it?
      Yes, they do.

      Comment


        #4
        I think you require:

        Options +FollowSymLinks

        i could be wrong tho :P

        Comment


          #5
          u dont have any redirects such as header("Location:") in the scripts your directing to do you that are sending teh users onto a non-seo friendly url ? only thing i can think of if the redirects themselves are working.

          Comment


            #6
            Originally posted by something else View Post
            I think you require:

            Options +FollowSymLinks

            i could be wrong tho :P

            Just tried that but nothing worked!

            Comment


              #7
              Originally posted by youngbobby
              Urrrrm I don't quite understand. I have put up the code above on the .htaccess file and on my site, i link directly to the url like i've set it up on the .htaccess file or is that not the right way of doing it?

              Along the Line, once Page Loads completely it still displays URL in an "Unfriendly Manner"

              Example:

              My .htaccess has this:
              Code:
              RewriteEngine On
              RewriteBase /
              RewriteRule ^categories/([0-9]+)/([0-9]+)/([A-Za-z0-9-]+)/?$ http://naijatop.net/Site/viewCategory.php?page=$1&id=$2&catname=$3 [L]
              RewriteRule ^view/([0-9]+)/(.*)/?$ http://naijatop.net/Site/viewSiteDetails.php?id=$1&sitename=$2 [R]

              Now my PHP code for viewSiteCategory.php:

              Code:
              $we = htmlspecialchars_decode(trim($hen[1]));
              $deef = preg_replace('/[^A-Za-z0-9]/', '-', $we);
                echo " <b><a title=\"".$hen[1]."\" href=\"".$siteurl."/Site/view/".$hen[0]."/".$deef."/\">".GO."</a></b>
              Is there anything i am missing?
              Are You Putting .htaccess in your "Site" Folder or Main Directory ?

              Comment


                #8
                Originally posted by something else View Post
                Are You Putting .htaccess in your "Site" Folder or Main Directory ?

                It's in the Site folder

                Comment

                Working...
                X