473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

module rewrite loaded but not redirecting

REALLY need help with rewriting urls with htaccess. am assuring u that i ve done almost all i could i ve even copied a codes directly form tutorials.

my phpinfo says mod_rewrite is loaded and here is my htaccess file
Expand|Select|Wrap|Line Numbers
  1. # Start the engine. Vroooom.
  2. RewriteEngine On
  3.  
  4. # This resolves paths to the current directory. (You may or may not need this).
  5. RewriteBase /
  6.  
  7. # And the rule.
  8. #RewriteRule ^ fakepath/?$ index.php
  9.  
  10. RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  11.  
the htaccess file is in localhost/wamp/www/mywebsite/
my php
Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3. define( 'PUBLIC' , 1 );
  4. define( 'WEBROOT' , dirname(__FILE__) );
  5. define( 'DS' , DIRECTORY_SEPARATOR );
  6.  
  7. echo WEBROOT;
  8. $req = substr(WEBROOT,strpos(WEBROOT,'abcai') + 1);
  9. header('location:templates/blue_facad/index.php?'.$req);
  10. exit;
  11. ?>
  12.  
please help me am new to apache and MVCs
Oct 8 '11 #1
1 2650
Am using apache 2.2.11 and just discovered that in my httpd config the AccessFileName was not there i copied from internet and pasted there but still not working
Oct 8 '11 #2

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

Similar topics

8
by: Grant D. Watson | last post by:
If this has been answered before, or if my terminology is off, please bear with me; my Python experience is limited to use in one class and to personal projects. I'd like to do something rather...
8
by: Irmen de Jong | last post by:
What would be the best way, if any, to obtain the bytecode for a given loaded module? I can get the source: import inspect import os src = inspect.getsource(os) but there is no...
6
by: Praveen Ramesh | last post by:
Hi, Is there anyway I can determine when exactly a module file I have (part of a bigger assembly) gets loaded into memory? The AssemblyLoad event tells me when exactly an assembly gets loaded,...
4
by: insomniux | last post by:
Hi, I need to check if a kernel module is loaded on a linux box.My linux version 2.6. If the module is not loaded, I need to load it. Should I do that with a system command (modprobe) or is there...
3
by: geevaa | last post by:
Hi group, PHP Warning: Module 'readline' already loaded in Unknown on line 0 what this warning means? please help me by explaining
1
by: jeffbg123 | last post by:
Hey, I am running this code on our production server: <?php $f = scandir("/home"); foreach($f as $val){ echo $val; echo "\n"; } ?>
4
by: Peter J. Bismuti | last post by:
I'm having trouble understanding how namespaces work in modules. I want to execute a module within the interpreter and then have values that are calculated persist so that other modules that get...
4
by: rkmr.em | last post by:
Hi I have a function data, that I need to import from a file data, in the directory data If I do this from python interactive shell (linux fedora core 8) from dir /home/mark it works fine: ...
0
by: Cramer | last post by:
Using ASP.NET 3.5: Can a custom HTTP Module be used to register for the Application_Start event? Or _must_ I use Global.asax to work with Application.Start? I understand that I can use a custom...
6
by: dudeja.rajat | last post by:
Hi, I found on the net that there is something called module initialization. Unfortunately, there is not much information for this. However, small the information I found module initialization...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.