• I know I may have asked this before, but i’m struggling. I want to click on a link of an article to open up in a page but instead of it opening in the index.php page I want it to open up in say artlicles.php page.

    Here is my .htaccess code:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^([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 ^([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wordpress/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wordpress/wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wordpress/wp-feed.php?feed=$1&withcomments=1 [QSA]

    Can someone help me here and try to be clear, because all this is a little foreign to me.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you tried altering this line in your .htaccess:

    ^([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]

    to:

    ^([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /articles.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]

    Thread Starter nicktoye

    (@nicktoye)

    yeah I have.

    This is the page

    https://www.nicktoye.co.uk/

    Try clicking on a link,

    Just have. For example, clicked title link for ” Just Browsing” and besides your images at top right not being displayed (correct path?), the post seems to come up fine. I’m assuming the articles page is different somehow?

    Thread Starter nicktoye

    (@nicktoye)

    Well it doesn’t have the About Me paragraph, I want it to behave like https://www.simplebits.com – he has it so when you click a post it opens up the article in https://www.simplebits.com/notebook/

    You see I don’t just want my site to be a blog, I want it to be something more.

    Do you know how I can fix this?

    Thread Starter nicktoye

    (@nicktoye)

    Anyone know how I can open up articles in a different page then the index.php page, there must be some simple explanation for this.

    (Checking out simplebits…)

    Ah, now I see what you’re after. For that you’re looking at what we around here refer to as a “static” page (in simplest terms, a post or article handled outside the normal post chronology) . WordPress 1.5 will have this as a feature called Pages. For 1.2, look over podz’s document for ideas:

    https://www.tamba2.org.uk/wordpress/static/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permalinks’ is closed to new replies.