Getting rid of “index.php” in URL’s?
-
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
- The topic ‘Getting rid of “index.php” in URL’s?’ is closed to new replies.