• abcommendatore

    (@abcommendatore)


    All my other page links work properly, but my home link doesn’t have a backslash after it and break. Is this hard coded somewhere? The only time this happens is when it is autogenerated. I can change it most places except in the page listing. Any help would be greatly appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • URL?

    Thread Starter abcommendatore

    (@abcommendatore)

    That missing backslash really shouldn’t break the link.

    1) Try resetting permalinks.
    2) Disable all of your plugins.
    3) What does your .htaccess file look like?
    4) What code is generating the page links?
    5) You are getting 301 errors. How are you trying to deal with the permanent redirect?

    Thread Starter abcommendatore

    (@abcommendatore)

    3) <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /web/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /web/ [L]
    </IfModule>

    of course now i’ve done something where i’ve broken the entire thing…i tried resetting rewritebase and rewriterule to just /web/…but that’s not helping either.

    4) <?php wp_list_pages(‘depth=1&title_li=’); ?>
    5) Javascript: <script language=”javascript”><!–
    location.replace(“web/index.php”)
    //–>
    </script>

    I believe that rewrite rule ought to read RewriteRule . /web/index.php [L] (maybe removing that index.php is what you alluded to trying?). However, WP will create this file for you and it might be interesting to see what you get if it does. Rename your existing .htaccess to .htaccess_old and then reset the permalinks. WP will write the file for you or complain that it doesn’t have the permissions to write the file and print out the rewrite rules so that you can do it manually. Either way, it will confirm the appropriate rewrite rules.

    Did you disable plugins? There are a couple of filters in wp_list_pages that a plugin could hook into. Maybe one of them is causing the problem. Maybe not. It would be nice to eliminate the possibility.

    For now, I’d say comment out that javascript redirect. Its going to make things more difficult to debug. I’m not sure I’d use javascript for the purpose anyway but that’s another story.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Home Link Doesn’t Work’ is closed to new replies.