• I’m sure this is fairly basic, but I’ve run a few searches and not found an immediately apparently answer.
    Blog: https://www.ensight.org/wp
    I’m trying to get it so that /index.php/archives … Doesn’t have /index.php. Mainly because I’m coming from an MT installation.
    I’ve already got a .htaccess in the /wp/ directory of my site, which looks like this:
    RewriteEngine On
    RewriteBase /wp/
    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/?(.*) /wp/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/?(.*) /wp/index.php?author_name=$1 [QSA]
    RewriteRule ^index.php/archives/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /wp/index.php?name=$1&page=$2 [QSA]
    RewriteRule ^index.php/archives/?([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?name=$1&feed=$2 [QSA]
    RewriteRule ^index.php/archives/?([_0-9a-z-]+)/trackback/?$ /wp/wp-trackback.php?name=$1 [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]
    AddType application/x-httpd-php .html

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you turned on the Permalinks option in the admin screen?
    That would be step one.
    Step two would be to then take the rewrites it gives you and plug them into your .htaccess file.
    TG

    Thread Starter jeremywright

    (@jeremywright)

    Gah, I had “index.php” as part of the archive /me rolls eyes.
    Thanks ?? All fixed.
    Now I just need to get my old MT URL’s working ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting rid of “index.php” in URL’s?’ is closed to new replies.