Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache install probs

Status
Not open for further replies.

manicleek

Technical User
Jun 16, 2004
143
GB
I have just installed Apache 2 for the first time on
windows xp

I have the server working ok but for some reason mod_rewrite
won't work on my local machine, even though I have taken the # in the load module and set AllowOveride to All.

I know my .htaccess file works fine as it works live.

phpinfo() shows no modules loaded though

can anyone point me in the right direction here?
 
yeah I did all that, I also downloaded a GUI for Apache that sas the module is loaded.

I'm just wondering if theres anything else I need to add/change in the httpd file.

Or maybe if my hosts set up is different and maybe theres something I need to add to my .htaccess file

its currently

Code:
RewriteEngine On
RewriteRule ^details/([^/.]+)\.htm$ /details.php?marina=$1 [L]
RewriteRule ^udetails/([^/.]+)\.htm$ /udetails.php?marina=$1 [L]
RewriteRule ^results/region/([^/.]+)\.htm$ /results2.php?region=$1 [L]
RewriteRule ^results/(.*)/(.*)/(.*)/(.*)\.htm$  results2.php?$1=$2&$3=$4 [L]
 
did you try adding in rewrite conditions? If I were setting it up I'd do it like this:

Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/details/
RewriteRule ^/details/([^/.]+)\.htm$ /details.php?marina=$1 [L]
RewriteCond %{REQUEST_URI} ^/udetails/
RewriteRule ^/udetails/([^/.]+)\.htm$ /udetails.php?marina=$1 [L]
RewriteCond %{REQUEST_URI} ^/results/region/
RewriteRule ^/results/region/([^/.]+)\.htm$ /results2.php?region=$1 [L]
RewriteCond %{REQUEST_URI} ^/results/
RewriteRule ^/results/(.*)/(.*)/(.*)/(.*)\.htm$  results2.php?$1=$2&$3=$4 [L]

Steve Kiehl
Web Page Designer - Nanovox Productions
Fantasy Artist - Zeadi
 
It still doesn't work

I'm just getting a 404 error when I click a link to one of the pages whereas when live they work fine

in addition, my phpinfo() isn't showing any apache details at all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top