Friendly URL working on Windows but not Mac

Discuss practical ways rearrange URLs using mod_rewrite.

Friendly URL working on Windows but not Mac

Postby hit93 » Fri May 07, 2010 8:36 pm

I have the same .htaccess file on a PC and Mac machine. On both machines I'm able to access files on the root folder but when I try to access files I set rules for that fall below the root, inside a folder called "admin". I get 404 error on the Mac (The requested URL /admin/tracks/ was not found on this server.).

I'm running Apache 2.2 on both machines.

Although I have not set a rule to access mysite.com/admin/index.cfm with mysite.com/admin/ it resolves on both machines.

The goal is for: /admin/tracks/ -> /admin/tracks.cfm, and /admin/tracks/adduser -> /admin/tracks.cfm?trackspg=addusers.

My guess is the httpconf. Below is the .htaccess file:
Code: Select all
Options +FollowSymLinks

RewriteEngine On
RewriteBase /

RewriteRule ^index\.html$ /index.cfm [QSA,L]
RewriteRule ^login\.html$ /login.cfm [QSA,L]
RewriteRule ^logout\.html$ /logout.cfm [QSA,L]
RewriteRule ^features$ /featured.cfm [QSA,L]
RewriteRule ^features\.html$ /featured.cfm [QSA,L]
RewriteRule ^admin/tracks/$ /admin/tracks.cfm [QSA,L]
RewriteRule ^/admin/tracks/([A-Za-z]+)$ /admin/tracks.cfm?trackspg=$1& [QSA,L]
RewriteRule ^/admin/tracks\.html$ /admin/tracks.cfm [QSA,L]
RewriteRule ^/admin/trackDetail/([0-9]+)$ /admin/trackAdded.cfm?trackID=$1 [QSA,L]
hit93
 
Posts: 5
Joined: Thu Mar 19, 2009 5:47 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron