apache - Transferring .htaccess to production server gives URL not found error -


i've spent afternoon writing .htaccess file project working on.

it works in test environment when transfer live server, 404 errors:

the requested url /albums/hua-hin/ not found on server.

additionally, 404 not found error encountered while trying use errordocument handle >the request.

my .htaccess follows:

options +followsymlinks rewriteengine on  rewriterule ^albums/([^/]+)/image/([^/]+)/([^/]+) /getimage.php?a=$1&i=$2&pt=$3 [nc] rewriterule ^albums/([^/]+)/tags/([^/]+) /index.php?a=$1&tag=$2 [nc] rewriterule ^albums/([^/]+)/sag/([^/]+) /index.php?a=$1&sag=$2 [nc] rewriterule ^albums/([^/]+)/ /index.php?a=$1 [nc] 

i wonder if way server set has it. it's shared account on host multiple sites.

www.mymaindomain.com points root of (my space on) server. there .htaccess file there points traffic www.mymaindomain.com (root)/mymaindomain

this site located in (root)/anotherdomain, , directly pointed there.

i have other sites @ (root)/domain3, (root)/yetanotherdomain etc; none of use .htaccess files far remember!

ok have found issue!

i have file in root called albums.php, , redirects basled on /albums/

for reason, while didn't cause issues in testing environment, caused production server 404 on me. renaming albums.php file different solved problem.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -