mod_rewrite
Moderator: General Moderators
-
learnerabn
- Forum Commoner
- Posts: 48
- Joined: Wed Feb 10, 2010 12:56 am
mod_rewrite
in my apache server mod_rewirte module is loaded but
the url in my localhost is not changing according to my htaccess file
can any bicy help me?
the url in my localhost is not changing according to my htaccess file
can any bicy help me?
Re: mod_rewrite
What does your htaccess file look like?
Re: mod_rewrite
Does your Apache config allow .htaccess files?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
learnerabn
- Forum Commoner
- Posts: 48
- Joined: Wed Feb 10, 2010 12:56 am
Re: mod_rewrite
i uncommented the load rewrite module.... line in my apache config file.
so i thought it'll allow access to htaccess file
how can i confirm whether it'll allow access to htaccess file r not?
so i thought it'll allow access to htaccess file
how can i confirm whether it'll allow access to htaccess file r not?
Re: mod_rewrite
You need the following statement in your <directory> directive for your document root -
http://httpd.apache.org/docs/2.0/mod/co ... owoverride
Code: Select all
AllowOverride All-
learnerabn
- Forum Commoner
- Posts: 48
- Joined: Wed Feb 10, 2010 12:56 am
Re: mod_rewrite
do mean that the following lines should present?
yes it is in my http.conf file.
Code: Select all
<Directory "c:/wamp/www/...">
#
# Possible values for the Options directive are "None", "All",
.
.
.
# Options FileInfo AuthConfig Limit
#
AllowOverride all
-
learnerabn
- Forum Commoner
- Posts: 48
- Joined: Wed Feb 10, 2010 12:56 am
Re: mod_rewrite
plz can any one help me?
Re: mod_rewrite
papa wrote:What does your htaccess file look like?
-
learnerabn
- Forum Commoner
- Posts: 48
- Joined: Wed Feb 10, 2010 12:56 am
Re: mod_rewrite
i cant understand your question properly..
it looks like just a text file.
it looks like just a text file.
Re: mod_rewrite
Paste the content from that file to this forum so other people than your computer can read it.. 
-
learnerabn
- Forum Commoner
- Posts: 48
- Joined: Wed Feb 10, 2010 12:56 am
Re: mod_rewrite
hey i got it but i have problem in one of my rewrite rule
this rule does not working can you tell me what is wrong with this?
Code: Select all
RewriteRule ^prod_det/([0-9]+)/$ prod_det.php?pr_id=$1