Notice: The Tweet Nest support forum has been moved to the GitHub issue tracker. Please report all issues there. Thank you!
Post a reply

Incorrect Path

A forum thread posted in Tweet Nest by miklb on Feb 11th, 2012

miklb OP

I just realized that my /search.php, and archives aren’t working.

My Debian setup has my domains using mod_vhost, and is installed in /home/www. When I try to access an archive, 2012/01 for instance, hovering the link, the URL looks correct. However clicking the link I get a 404 with “The requested URL /home/www/myinstall/month.php

I had a similar issue with another script and had to add `$_SERVER[‘DOCUMENT_ROOT’] = ‘/home/www/’ . $_SERVER[‘SERVER_NAME’] . ”;` at the top to fix it, but I’ve tried a couple different places and it didn’t’ affect those links.

Hoping you might have a suggestion or something I missed in config when I set this up a couple of years ago.

I can view the main index page and retrieve my tweets with no problem.

Thanks for both the script and your time.

Reply

miklb OP

That should have said mod_vhost_alias.

Reply

graulund

The part of the code that converts the fancy URL into something pointing to a PHP file like month.php is the rewriting found in the .htaccess files. Therefore changing the document root inside the PHP won’t make any difference, no.

You can always change the paths to point to the correct path relative to the other document root (that is, add the folders as prefix to every filename), but really, this is a server configuration issue that should probably be solved at its root: By figuring out how to make sure the correct docroot is given to files that are in a subfolder by way of mod_vhost_alias.

Reply

miklb OP

thanks for the reply, I’ll admit I’m not an expert on Apache or htaccess, but I do have numerous other sites on the install (mostly using WordPress ) that don’t have any problems.

I’ll ask a friend about the htaccess rules and see if they have any suggestions.

Reply

miklb OP

ha! took a look at my other rewrite rules and noticed the `RewriteBase /` rule, added that and it worked just fine.

Reply

loewenherz__

Now, why didn’t I think of that?
Ya! Thx - right.

But the RewriteBase depends on the TweetNest Config / Serverconfig - it is not the solution anyway.

I use a subomain (twitter.domain.ldt) with a vhost based document root and it works.

Reply

Post a reply to this thread

Please log in with your Twitter account using the button below in order to participate.

Connect with Twitter