Hello...
My permalinks been this
/index.php/contact/
/index.php/case/123
When i remove index.php from:
/index.php/%postname%/
I get this error code
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
HI Tobbs,
Just for SEO purposes it would be better to remove index.php as it does not make any sense having it in the URL.
Thanks for re...
But i cant remove the index.php thats the problem
NuBlue-Hosting
Member
Posted 1 year ago #
Hi Tobbs,
Please can you post the contents of your .htaccess file (from the root of your webspace) so I can see what you have?
Thanks
Hmm... i dont have any htaccess files there... I dont fint them. In the root is nothing
praveen68
Member
Posted 1 year ago #
The .htaccess file is causing error. If you had changed the permalink to /index.php/%postname%/ it will give error. Since you can't find the .htaccess file make a new file .htaccess
with
# 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
and upload it to root.
Check this out.
Thanks but i have test to do own .htaccess now and its still not works.
i get:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
praveen68
Member
Posted 1 year ago #
If you had altered the permalink custom value, change it back to earlier value and see.
I have change back it.
Everything works but i can“t remove http://www.mypage.com/index.php/contact or http://www.mypage.com/index.php/blogg
What sort of server is your site hosted on - Windows or Linux?
praveen68
Member
Posted 1 year ago #
Thrash those pages from Dashboard > All Pages. logout and relogin.
Also check CHMOD permissions. Check with your service provider if the permissions for all files are 644. You can also change to 644.
Its on a Windows 2008 server...
Can i do somthing with that ?
NuBlue-Hosting
Member
Posted 1 year ago #
Is it running Apache or ISS?
NuBlue-Hosting
Member
Posted 1 year ago #
As far as I'm aware out of the box IIS doesn't support .htaccess which means you won't be able to remove the index.php from the url. A couple of possible options to remedy could be:
- Perhaps consider getting a linux shared hosting account to host wordpress (it shouldn't cost too much and the .htaccess will work out of the box)
- Install http://www.isapirewrite.com/ on your IIS server (this allows IIS to read .htaccess). I've never used it but I believe this could be a solution.
- Install Apache on your Windows Server
izi24h
Member
Posted 3 months ago #
Use this .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
and change your permalink. i'll work!
Windows servers don't recognize mod_rewrite.
[edit] And I just noticed this is 10 months old with no more useful information so I will close it.