nihilator
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to redirect from example.com/blog to example.com/blog/index.phpwhat kind of redirection should i use? the mod rewrite for IIS doesn’t work either. is there any other way i can use the “pretty permalinks” in my blog? please help
Forum: Fixing WordPress
In reply to: Page not Found After Changing Permalink to /%postname%/Problem Solved in here. I made a 404 page that will direct all “Page not found” in that html page. You need to create a file called “wp-404-handler.php” and put it in your admin panel. In my case, I’m using Plesk Panel. I put it at:
Domains>Web Directories>Error Documents
and then chose 404 Not found file. Change the type to URL and change the location to: /blog/wp-404handler.php
and then I put the wp-404hander.php to my blog installation directory: /blog
here is the code for the wp-404handler.php:
<?php
$_SERVER[‘REQUEST_URI’] = substr($_SERVER[‘QUERY_STRING’], strpos($_SERVER[‘QUERY_STRING’], ‘:80’)+3);
$_SERVER[‘PATH_INFO’] = $_SERVER[‘REQUEST_URI’];
include(‘index.php’);
?>My /%postname%/ custom permalink now works but when I go to my https://www.example.com/blog, I get the no post found which is in my single.php section. I can access though the blog url at https://www.example.com/blog/index.php which I think is ok since it is only the home for the blog and not the pages.
Forum: Fixing WordPress
In reply to: Page not Found After Changing Permalink to /%postname%/Problem Solved in here. I made a 404 page that will direct all “Page not found” in that html page. here is the code for the 404 page
Forum: Fixing WordPress
In reply to: Page not Found After Changing Permalink to /%postname%/I don’t actually want to include the index.php. But it works when I did and i think its the most possible custom structure i can use if none of this work.
Anyway, i tried with the link that you posted and changed it like this;
/%post-id%/%postname%
but it just make the pages worst. Its a bad URL on the links and the contents on the pages are scattered.
This permalink system is really hard. Why didn’t they make it a default as /blog/postname.
Forum: Fixing WordPress
In reply to: Page not Found After Changing Permalink to /%postname%/Hi Ipstenu –
I’m in the philippines so i use the ones which are available in here. maybe i need to check it with my webhosting. So you mean some web hosting really require the index.php? So there’s no way they can change that? if that’s the case, that would really suck.
@enrecooo
– man, you tried including the index.php like the one i posted above?
/index.php/%postname%/
try it and then see if you can get your post done. What is your web hosting company? maybe we have the same issue.
Forum: Fixing WordPress
In reply to: Page not Found After Changing Permalink to /%postname%/I just confuse myself with my own post-
@songdogtech – What I meant was even though i replaced the .htaccess by the one you posted, it still didn’t work. So what I did instead, i changed the custom structure like the one above. It worked but it has the index.php in the beginning (obviously since i put it in).
I don’t know why it won’t work with just /%postname%/ as the custom structure. I hope there are some other options. by the way, I am using Parallels Plesk Panel and I can’t change the permission on my core FTP so I need to go the the plesk panel and change it at the file manager and Im sure I made it all permissions to full control.
Forum: Fixing WordPress
In reply to: Page not Found After Changing Permalink to /%postname%/Hey man, thanks for the reply. Though it still didn’t work.
What I did is that i changed the custom structure like this:
/index.php/%postname%/instead of just /%postname%/
but it has the index.php in it like:
https://www.example.com/index.php/the-name-of-post
which I don’t know if that’s good or if that is SEO friendly (I doubt it).
At least I can see my posts. But if anyone has a great idea of what my problem is, please help.
thanks.
Forum: Fixing WordPress
In reply to: How to make Fancy Ajax Contact Form to work on WordPress?bump