Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:11:23+00:00 2026-05-27T20:11:23+00:00

i am using WampServer 2.2a-x32 and i am trying to use .htaccess file in

  • 0

i am using WampServer 2.2a-x32 and i am trying to use .htaccess file in my webroot folder.

i have rewrite.php file and here is its code

<h2 align=center> 
<?php 
// mod_rewrite Test Page 
if($_GET['link']==1){echo"You are not using mod_rewrite";} 
elseif($_GET['link']==2){echo"Congratulations!! You are using Apache mod_rewrite";} 
else{echo" mod_rewrte Test ";} 
?> 
</h2> 

<hr> 

<head>    
</head> 

<body> 
<p><a href="rewrite.php?link=1">LINK1</a> = rewrite.php?link=1</p>
<p><a href="link2.html">LINK2</a> = link2.html</p>     
</body> 
</html> 

i have .htaccess file and here is its code

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

in my http.conf file i have

LoadModule rewrite_module modules/mod_rewrite.so uncommented (without #)

and my Apache is configured to listen to 8080 port not sure if its the issue.

So if i hit the link http://localhost:8080/test/rewrite.php i get to see the page but when i hit link2 mod_rewrite doesn’t seem to work. i get Not Found
The requested URL /test/link2.html was not found on this server.

My system is windows 7 x32
any suggestions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:11:24+00:00Added an answer on May 27, 2026 at 8:11 pm

    thanx i actualy managed to fix it. The problem was that the file was not named corectly, instead of .htaccess it was htaccess.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Windows using WAMPserver (Apache, MySQL, PHP) I have the following: //test.php if (!defined('LC_MESSAGES'))
i am using php 5.2.4 with wampserver. everything is going fine. i have done
Im using PHP code to create a dropshadow effect on images. I have this
I have a 3 file: class.database.php config.php test.php In class.database.php i using: <?php class
I'm using wamp server. And I use dreamweaver to create php files. Here is
Using WampServer and phpMyAdmin. Here is the code: function createRecord(){ $id=null; var_dump(ID: ,$id); $length=0;
I am running WAMP server. On file upload using PHP I see $_FILES[tmp_name] =>
I have installed PHP using wamp server in Windows and I have give the
at first i ran this code on php file and run it on localhost
I am currently trying to use the php function 'include' to include an external

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.