• Hi,

    I am trying to edit the way my permalinks appear, so naturally I went to the permalinks sections and changed them. It then told me to edit my .htaccess file. I assume that is the file in templates.php, but am unsure where to enter the info it says to enter (which is below). Any help is greatly appreciated!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • .htaccess is situated at root – the same place your index.php and wp-layout.css are.

    If you cannot see it, you may need to adjust your ftp client.
    http://www.tamba2.org.uk/wordpress/ftp

    Thread Starter matt7267

    (@matt7267)

    Podz,

    Is this what I am looking for? It is in the templates.php file.

    <?php _e(‘.htaccess (for rewrite rules)’) ?>

    If so, I am still unsure of where to put the ‘Rewrite’ stuff at. Sorry if I don’t make sense. I am a newbie to WordPress.

    Yes and no.
    That link is from the Templates area, and the .htaccess file is where I said above.

    Do this:
    – Open notepad
    – Press the spacebar a few times in the file (just to make some blank spaces)
    – Save it as “htaccess.txt”
    – Upload that by FTP to your site, and put it in the same directory as index.php, wp-layout.css
    – With the FTP client, change the name of “htaccess.txt” to “.htaccess”
    – It will probably disappear from view

    Now go to the Templates area again, and you should be able to copy and paste those rules.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    No, you’re looking for a file called “.htaccess”. You’ll have to find this through FTP and make sure that you have set the setting that allows you to view invisible or hidden files. The link that Podz posted will help with that.

    Thread Starter matt7267

    (@matt7267)

    Podz,

    thanks for the help. That worked to a point. For some reason, the actual permalinks are not working, when I click on the permalink, I keep getting a “Page Not Found.”

    Oh well, no biggy. I will just use the regular permalinks.

    Thanks again though!!!

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