clean URL modrewrite mystery

eforman / 2009-04-28 00:11:01   

Hello, yes another clean URL question. i have followed stickie instructions, and confirmed my server has modrewrite. yet i get 404 File Not Found errors on exhibit pages. i believe this is because my site is in a subfolder.

http://www.ericforman.com/newSite/

i found a forum post that said you need to add this subdirectory to .htaccess. so i did this:

RewriteRule ^(.+) index.php
RewriteRule ^(.+) /newSite/index.php

and now I don't get 404 error, which is good, but every exhibit page just shows the About page.

i tried removing the first line above so the only RewriteRule is for subdirectory, but same thing.

so after digging around in the forums, i systematically tried every suggestion (obviously i am an amateur here), and none of them worked:

Options -MultiViews

Options +FollowSymlinks

RewriteBase /

finally i set MODREWRITE back to false, and strangely enough the exhibit page clean URL works!

define('MODREWRITE', false);

but of course none of the nav links go to that page, because MODREWRITE is set to false. i am mystified. can anyone help?

again, you can see this in action by going to the above example exhibit from the main nav, in which case you will arrive at:
http://www.ericforman.com/newSite/index.php?/projects/timeflow/

and then you can go to what the clean URL would be and see that it works:
http://www.ericforman.com/newSite/projects/timeflow/

if MODREWRITE is set to true, however, the link above would *not* work and would only display the About page.

thanks for any guidance,

eric

Vaska A / 2009-04-28 00:23:18   

Who is your host?

I'm going to trust you will be linking back to Indexhibit on your site?

eforman / 2009-04-30 03:03:29   

1&1 is the host. this page says apache server has modrewrite:
http://faq.1and1.com/scripting_languages_supported/configuring_apache_server_using_htaccess/4.html

yes i am linking back to indexhibit. experimenting with heavy customization so that isn't in there at the moment, but rest assured i will respect that.

eforman / 2009-04-30 03:04:38   

by the way, is there no option for email notification of thread reply?

cruz / 2009-04-30 09:15:10   

nope.

eforman / 2009-05-01 20:55:33   

so... no ideas? i will try to post on some other lists in the meantime, if i figure it out, i'll post back here...

Vaska A / 2009-05-01 23:53:33   

There are many sites on 1and1 and they haven't had issues...

eforman / 2009-05-03 19:38:30   

what needs to be done differently if the site is in a subdirectory? i guess i should put it in root directory to see if this is the problem, just didn't want to interfere with my current site.

in summary:

if i set define('MODREWRITE', false) in defaults.php the site links are *not* clean, but clean URLs do work

if i set define('MODREWRITE', true) the site links are clean, but clean URLs do *not* work.

what else can i try?

This thread has been closed, thank you.