CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    49

    Question How to re-write URL?

    Hi

    I want to re-write my URL. I came cross two things :
    1) .htaccess
    2) <Directory> tag

    Whichis best to use?
    And i read abput both, but being new i am not able to get the thing. I read that .httpd.conf file should bt there in my machine to reqrite. But i serach the whole PC but didnt get that file. DO i have to install mod_rewrite. I have tomcate 6.0
    I wnat to achieve following thing :

    IF user enters the ....
    http://localhost:8080/mySite/pgHome

    it shoudl open the
    http://localhost:8080/mySite/section=pgHome


    What thing i have to write where? Which filter string i have to wrtie? Its urgent. Can anybody tell me? I am working in NetBeans. And after creating file where to keep it? and do i have to explicity install mod_rewite?

    Thanks in advance.
    Last edited by ujjvalpandya; July 4th, 2008 at 07:14 AM.

  2. #2
    Join Date
    Sep 2006
    Posts
    49

    Question which ver. for required for mode_rewrite?

    Hi

    I have installed : apache-tomcat-6.0.14.exe
    It donet have httpd.conf
    which version i have to install to use URL rewriting?

  3. #3
    Join Date
    May 2002
    Posts
    10,943

    Re: which ver. for required for mode_rewrite?

    Please remember that Apache web server and Apache Tomcat are two separate applications. The configuration file httpd.conf is part of the web server. Also, URL rewriting must be handled by the web server. This is not for Tomcat.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  4. #4
    Join Date
    Sep 2006
    Posts
    49

    Question Re: How to re-write URL?

    OMG, i was totaly in wrong direction till now ! Thanks a lot dear. I was really confused about apache and apache tomcat.

    cant we achieve URL rewriting with tomcat ? to i have to add plug-inns in tomcat to achieve it? what to do for that?
    Last edited by ujjvalpandya; July 8th, 2008 at 11:20 PM.

  5. #5
    Join Date
    May 2002
    Posts
    10,943

    Re: How to re-write URL?

    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured