Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End .htaccess beginer

  • This topic is empty.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #37125
    The-Marshal
    Member

    .htaccess on my website didn’t work i used this code on root directory


    RewriteEngine On
    RewriteRule ^([^/]*).html$ /index.php?page=$1 [L]

    but still not working please help me

    #98924
    The-Marshal
    Member

    make friendly url using htaccess

    #98927
    The-Marshal
    Member

    yes they support rewriting

    www.mydomain.com/index.php?page=1
    #98928
    The-Marshal
    Member

    by the way i put my htacces inside public_html directory next to my index page

    thank you andy !

    #98930
    polson1000
    Participant

    Make sure that when you have edited your .htaccess file Notepad or what other editing program has not given it a .txt file extension.

    #98944
    The-Marshal
    Member

    no it’s .htaccess next to index page

    #98946
    The-Marshal
    Member

    look to this image where is .htaccess file
    here…

    #98961
    The-Marshal
    Member

    Is there any help please !

    #98997
    karlpcrowley
    Participant

    Howdy,

    I’ve never been one to get my head around regular expression the first time around
    Check this out, seems to cover everything needed
    http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

    Is there any errors coming up on your site when you try to access it?

    #99027
    The-Marshal
    Member

    thank you karlpcrowley

    no errors coming up,and i checked the website but how i know that .htaccess work fine !

    #99035
    The-Marshal
    Member

    yes it’s works fine and i got the value of

    $_GET

    but url never change to static…

    #99042
    The-Marshal
    Member
    http://www.mydomain.com/index.php?page=1
    #99055
    The-Marshal
    Member

    i’m writing inside index page this code to make the url


  • ">

  • then i get the value by this code


    $idRequest = $_REQUEST;

    then i use it in SQL syntax

    and .htaccess placed next to index page in the root directory of my website and has this code to make easier to read


    RewriteEngine On
    CheckSpelling On
    RewriteRule ^([^/]*).html$ /index.php?page=$1 [L]

    so please where is the in correct in my whole code , what should i change !
    i’m just a beginer in htaccess

Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Back End’ is closed to new topics and replies.