• I simply cannot make permalinks work WITH the /index.php/ work around! (Forget mod_rewrite, Network Solutions will NOT enable it, period.)

    I have sprinkled die() statements in various PHP files, just to see if the “pretty” permalinks (of the form /mydomain/index.php/2005/07/24/Hello-world) are being parsed at all. I can’t even figure out where are they parsed — I thought it was in the file ./wp-blog-header.php, after the comment that says “Process PATH_INFO and 404” (when it calls the wp_rewrite_rules() method on the $wp_rewrite instance) but that code doesn’t seem to be executed. I simply can’t figure out how is the string supposed to be parsed (by which piece of code).

    If someone has permalinks working, WITH the /index.php/ stuff, and is willing to help me, I’d owe you. To be honest, I’m beginning to wonder if permalinks don’t work at all but it’s a rite of passage for new users… ??

    Please don’t point me to Codex documentation or postings in the permalink or permalinks categories; I’ve read EVERYTHING in those, and tried all the suggestions, to no avail.

    Thanks to the kind souls that will help me.

    Rafael Bracho

Viewing 9 replies - 1 through 9 (of 9 total)
  • I don’t know if this will help, but I have my permalinks set up like this:

    /index.php/%postname%

    That’s all that’s required. From there, I just use the postnames or pagenames in my links. After like a day of screwing around with permalinks, I found that was the easiest and most trouble-free way to go. I haven’t had problems since.

    Moderator James Huff

    (@macmanx)

    Forget mod_rewrite, Network Solutions will NOT enable it, period.

    Yes, that’s a clear sign to move to a new hosting provider. Network Solutions my buttocks.

    Anywho, what exactly are you entering into the “Structure” field. Are you entering anything into the “Category base” field? Since you have edited a few files in your current install, would you please install a brand-new, un-edited, and un-modified WordPress blog so that we can properly test this?

    I just spent an hour trying to get permalinks to work. In the end, I deleted the .htaccess file from my blog directory, added /index.php/ to the permalink structure, and clicked the ‘Update permalinks button’. Finally it worked.

    – Sean

    P.S. I followed the same exact steps that I said above a couple times, and it didn’t work. I removed %category% from my permlink structure and it worked.

    – Sean

    Try WordPress Tip on Permalink Options.

    This should address your problems.

    Thread Starter rxbracho

    (@rxbracho)

    Macmanx: This is my situation.

    The domain /brachiza.fambracho.org points to the directory /htdocs/wordpress in my shared host. I have not edited any wordpress files, other than insert die() statements to see if particular code branches were being executed — those statements are all gone. That’s how I found out that the code I thought was doing the parsing is not being executed. So, it’s a virgin wordpress release I got about four days ago.

    I had an .htaccess from when I was under the impression that Network Solutions-My-Ass indeed enabled mod_rewrite. I just deleted it (following forceagainstsomething’s suggestion) but got the same problem. An error page simply saying: ‘No input file specified’ — this has to be an error within PHP and not part of WordPress, right?

    My feeling is that whatever code is supposed to parse the permalink (which in my tests is /brachiza.fambracho.org/index.php/2005/07/24/hello-world/) is not being executed at all! Does anyone know WHERE is that code? Is there a way to put some sort of debugging statements — I’ve never worked with PHP before, I’m sorry, though I’ve worked with enough languages that I can guess what’s going on.

    I don’t have anything in the categories section of permalinks (one thing at a time, I guess).

    The no-permalinks case works, i.e., /brachiza.fambracho.org/index.php?p=1 will return the first (and only so far) posting. But if I use /index.php/%post_id% as the permalinks structure, /brachiza.fambracho.org/index.php/1 does NOT work — as expected, I suppose.

    If anyone tries those URLs, you’ll see that the blog is in Spanish. I have only touched the theme files to do that. I can put back the ‘default’ theme if you’d like, and you’ll see that the errors are identical.

    Thanks again to all.

    Rafael Bracho

    Moderator James Huff

    (@macmanx)

    Try the solution that Angsuman posted above. It looks promising.

    Thread Starter rxbracho

    (@rxbracho)

    Sorry but I went through the entire blog and there was nothing new there. I honestly cannot figure out why it doesn’t work, given that so many people have no problem using the /index.php/ work around.

    Does anyone know where is the code that does the parsing? I’ll take it from there.

    Rafael Bracho

    Through some investigation, there is a work around to make this work with Network Solutions hosting services.

    The key is to replace the first “^” on each RewriteRule line with a “/”. For those familiar with regular expressions, I know this is not an optimal fix but should work for most people the majority of the time. Network Solutions is investigating further to look into what is happening that the “^” is not working.

    For example if you had the following:
    RewriteRule ^categorias/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^categorias/(.+)/?$ /index.php?category_name=$1 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^archivos/author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]

    Simply change it to:
    RewriteRule /categorias/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule /categorias/(.+)/?$ /index.php?category_name=$1 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule /archivos/author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘About to give up on permalinks; final cry of help’ is closed to new replies.