Ask your WordPress questions! Pay money and get answers fast! (more info)

Want to remove index.php from permalink WordPress

Hi,

I'm wanting to go in to my website oya.com.au and remove index.php from all the permalinks.

Eg. instead of saying http://oya.com.au/index.php/financial-planning/, I want it to say http://oya.com.au/financial-planning/.

I can supply admin and ftp details at request.

Cheers,

Kate

Answers (5)

2015-02-05

Reigel Gallarde answers:

is this wordpress or codeigniter?


Reigel Gallarde comments:

by default in wordpress, index.php is removed.


Reigel Gallarde comments:

while logged in, you can also visit this link.. and remove index.php if it's there in the textbox.. then save it...

[[LINK href="http://oya.com.au/wp-admin/options-permalink.php"]]http://oya.com.au/wp-admin/options-permalink.php[[/LINK]]

2015-02-05

Balanean Corneliu answers:

If is wordpress jusr go to admin panel/setting/permalink and chose what you like for you site. It is second option from the bottom.

2015-02-05

Romel Apuya answers:

you can add this in your .htaccess


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


Romel Apuya comments:

for Zues Server use rewrite.script in your root site...

#Zeus webserver version of basic Wordpress mod_rewrite rules
map path into SCRATCH:path from %{URL}
look for file at %{SCRATCH:path}
if exists then goto END
look for dir at %{SCRATCH:path}
if exists then goto END
##### FIX FOR LOGIN/FORGOTTEN PASSWORD/ADMIN ETC #####
match URL into $ with ^/wp-.*$
if matched then goto END
##### FIX TO ALLOW SEARCH TO WORK #####
match URL into $ with ^/(.*)
set URL = /index.php/$1

2015-02-05

Navjot Singh answers:

Try this in your .htaccess file

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


Navjot Singh comments:

Seems your website is using [[LINK href="http://builtwith.com/oya.com.au"]]Zeus Server[[/LINK]]. In that case follow the first step in from [[LINK href="http://derekmolloy.ie/remove-index-php-from-your-wordpress-url/"]]this tutorial[[/LINK]].


Navjot Singh comments:

And if the above code doesn't work try the following rewrite.script file

RULE_0_START:
# get the document root
map path into SCRATCH:DOCROOT from /
# initialize our variables
set SCRATCH:ORIG_URL = %{URL}
set SCRATCH:REQUEST_URI = %{URL}

# see if theres any queries in our URL
match URL into $ with ^(.*)\?(.*)$
if matched then
set SCRATCH:REQUEST_URI = $1
set SCRATCH:QUERY_STRING = $2
endif
RULE_0_END:

RULE_1_START:
# prepare to search for file, rewrite if its not found
set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT}
set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}

# check to see if the file requested is an actual file or
# a directory with possibly an index. don’t rewrite if so
look for file at %{SCRATCH:REQUEST_FILENAME}
if not exists then
look for dir at %{SCRATCH:REQUEST_FILENAME}
if not exists then
set URL = /index.php?q=%{SCRATCH:REQUEST_URI}
goto QSA_RULE_START
endif
endif

# if we made it here then its a file or dir and no rewrite
goto END
RULE_1_END:

QSA_RULE_START:
# append the query string if there was one originally
# the same as [QSA,L] for apache
match SCRATCH:ORIG_URL into % with \?(.*)$
if matched then
set URL = %{URL}&%{SCRATCH:QUERY_STRING}
endif
goto END
QSA_RULE_END:


And after this, go to settings>permalinks and set the url structure to custom as

/%postname%/

2015-02-05

Firoja_Imtosupport answers:

Hi,

You are using divi theme, you can change from SEO settings, http://www.elegantthemes.com/gallery/divi/tutorial-epanel.html

Thanks