473,806 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache doesn't read .htaccess (I think)

helimeef
77 New Member
Hi. I'm having issues trying to get .htaccess make mod_rewrite work. I have mod_rewrite setup properly (it's in phpinfo()), but it just seems to not work.

Right now I have two files, bob.html and alice.html, and of course .htaccess (all in the root directory). What I want to happen is have bob.html show up when I visit alice.html, so I put this in .htaccess:
Expand|Select|Wrap|Line Numbers
  1. RewriteEngine on
  2. RewriteRule ^alice\.html$ bob.html
.htaccess does not seem to be read. I tested ErrorDocument and that doesn't work either. Any ideas?

P.S. I'm running Apache 2.2 and PHP 5 on Windows Media Center Edition 2005.
Sep 26 '07 #1
2 6006
helimeef
77 New Member
Never mind I fixed it, had to edit httpd.conf to allow all overrides in .htaccess. Yay.
Sep 26 '07 #2
pbmods
5,821 Recognized Expert Expert
Heya, Steven.

Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)
Sep 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1758
by: Adam | last post by:
When using authentication on Apache server with .htaccess and .htgroup, is it possible to use PHP to provide customised content depending on whether a visitor to a website is in a specific group or not? If so, does anyone know of a good tutorial? Thanks for any help!
3
1641
by: Daniel Huang | last post by:
Hi, I setup a LAMP enviroment on my laptop, and did related config on my apache and linux as well. But each time I visit my http://localhost, I was only been brought to index.html instead of index.php. Only when I tpye http://localhost/index.php, I can open the index.php page.
2
1647
by: Jaap de Bergen | last post by:
Hello people, I'm optimizing my script because my server is under heavy load in the evening. I have a question which methode is more efficient for my server: ================== //connection with database is already open because other queries where executed first.
1
2796
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using are apache version2. mod_python v3.1.14 python2.4 The problem is,when i m running my python script,after starting apache
4
1549
by: news | last post by:
Our old Apache and PHP, in httpd.conf we have the following: # # These types cause httpd to let the PHP interpreter handle files with # the specified extensions. # <IfModule mod_php4.c> AddType application/x-httpd-php .php .php4 .php3 .phtml .bkk ..html AddType application/x-httpd-php-source .phps
54
3435
by: smnoff | last post by:
Below is a section from string.c at this linkhttp://cvs.opensolaris.org/source/xref/on/usr/src/common/util/string.cthat I am trying to fully understand.I don't fully understand LINE 514; not to mention that entire inner while loop and what it'strying to accomplish. I figured that if I can at least understand each line of this strstr methodand why it's written the ways it written, as well as in regards to perfomance or code simplicity, it...
3
1636
by: athos1 | last post by:
i am using apache, but when i am testing php it display the code in the browser, i saved the test code in htdocs file of apache please help. Thank
2
5579
by: slow2fear | last post by:
Hi, My current .htaccess file contains this: # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all
9
5539
by: Nichu | last post by:
Hello I set max_execution_time to 30 in php.ini file (i also checked in phpinfo). max_input_time is set to 45. But when I use in script something like that: while ( 1 == 1 ) or for ( $i=0; $i < 10000000000000000000000000000000000000000; $i++)
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10617
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10370
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4328
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3849
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.