• i’m coming from a blogger/mt type environment to wordpress, and finding the single template thing a bit difficult to understand, as i’m so used to having seperate template files for my index/archives/permalinks.
    for some reason my permalinks aren’t working at all. when i click on them, it just takes me to a blank page. and when i view the source of that page, i get this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head profile="https://gmpg.org/xfn/1">
    <title>

    <b>Fatal error</b>: Cannot redeclare preg_index() (previously declared in /home/virtual/site43/fst/var/www/html/wp/wp-includes/functions.php:1174) in <b>/home/virtual/site43/fst/var/www/html/wp/wp-includes/functions.php</b> on line <b>1174</b>

    i’m using clean URI’s with the following structure:
    /index.php/archives/%year%/%monthnum%/%day%/%postname%/
    when i copy the code into my .htaccess file, it makes every page on my site forbidden for some reason though.
    i’m so confused about how this is supposed to work. is it supposed to grab the necessary html/php out of my index.php page and use that as a part of the permalink and archives templates? because it doesn’t look like it’s doing that. here’s the url of my site if anyone wants to take a look:
    https://www.behooved.org
    i’ve scoured the docs and the wiki files all day, and haven’t found an answer. any help would be greatly appreciated! thanks. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter behooved

    (@behooved)

    oh, and i forgot to add that i’m a total newbie to php, (with the exception of includes), which is probably the reason i can’t work this issue out on my own.
    i’m willing to learn if it will fix this problem though!

    Comments work.
    I bet your htaccess file is not set up right, that’s all.
    Have you updated the .htaccess file? If so, how did you do it? I bet you haven’t done that yet. No problem. It’s easy.
    Most people use FTP for that. You might set it up through WordPress, but that would be unusual.
    Just get WordPress to give you the htaccess files. Then create a file called “htaccess”. Upload it to your root directory with FTP in ASCII mode. Then rename it to
    .htaccess
    That’s “dot h t a c c e s s ” (no spaces)
    That should do it.

    and you’d better prey that mod_rewrite is switched on on your server.

    Thread Starter behooved

    (@behooved)

    yeah i tried adding the new rewrite rules to my .htaccess file, but whenever i upload it to my server, it makes every page 403 forbidden in my browser.
    here’s exactly what i have in my .htaccess file (the first line is for something else):
    Options +Indexes
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php/archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^index.php/archives/category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^index.php/archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^index.php/archives/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^index.php/archives/?([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^index.php/archives/?([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^index.php/archives/?([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wp/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp/wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp/wp-feed.php?feed=$1&withcomments=1 [QSA]

    and yes, mod_rewrite is definitely switched on, i made sure of it with my hosts.
    any other ideas? thanks!

    For some reason, your host is not letting you write the htaccess file, or something is going on with that.
    I would get in touch with your host, and ask them about it. Sounds like a host-specific problem.
    Once the htaccess file is in place, and mod_rewrite is on, and WordPress is set up to use the directory structure, permalinks should be working just fine.
    Please keep us updated. Thanks.

    That’s good news. You’re welcome!
    Thanks for following up.

    I have inserted the desired permalink structure (based on /%year%/%monthnum%/%day%/%postname%/ exactly) into the .htaccess file (chmoded to 666) in my root directory; however, in attempting to pull up comments, archived posts, etc., I continue to get a 404 error claiming no such URL. In attempting to pull up the .htaccess file through WP via ‘Manage’ + ‘Files’ + ‘.htaccess (for rewrite rules)’–a route presumably preset, I am met with the smugly apologetic, “Oops, no such file exists! Double check the name and try again, merci.”

    A little help…por favor?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘permalink/archives.. blank page!’ is closed to new replies.