January 25, 201115 yr Sorry its me again... After thinking I was almost done on the niggly stuff for my website, I thought it would be best to change the permalinks for better site navigation. So I went onto the Permalinks section and chose the custom field and put in: /%postname% I clicked save, and I get the old: If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> That can't be too hard can it? Well it is for me My site is set up in the following way: root/blog/etc (so blog is just where wordpress is installed to). I have a htaccess file in my root, which contains this: # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName elliothesp.co.uk AuthUserFile /home/elliot/public_html/_vti_pvt/service.pwd AuthGroupFile /home/elliot/public_html/_vti_pvt/service.grp I assume the new .htaccess file must go in the blog folder. So I made a dublicate of the above and dragged it in, then I added the code which Wordpress told me to add - this went below everything. However I still get the same message, ive tried other things but no avil. PS. http://elliothesp.co.uk/ The latest blog link, it shows the post name, but the site is pretty screwed up now as you can tell
January 25, 201115 yr Try this as your structure: /%category%/%postname% It will add the category as well. Why don't you make the htaccess writable? Have a read of this as well. I think it's relevant to your situation: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
January 25, 201115 yr Author Thanks man but ive tried what it says (copying the file) but it just still doesnt work. Pulling my hair out Edited January 25, 201115 yr by Alias
January 25, 201115 yr Author Well an update on this, although it says it needs to be writable, it does actually change the links which is pretty weird. I now have the custom format of: /%category%/%postname% So, I click on a single post and hey ho that one works! So, I create a new php file, put the comment in: <?php /* Template Name: BlogLinkPage */ ?> Then add all of my stuff to show all of my blogs. On the Admin panel I create a new page, call it "Blog", and give it the template of "BlogLinkPage". I get given the permalink of: http://elliothesp.co.uk/blog View the page and get the error: "The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete." Damn you permalinks, damn you. Any suggestions? Sorry for the amount of posts, just ive probably clicked every page on google EDIT: http://blog.elliothesp.co.uk/blog That works! wtf, I am totally lost. Edited January 25, 201115 yr by Alias
January 26, 201115 yr check your wordpress url in settings doesn't have the www bit. I had this problem earlier today. In my case the urls were rewritten to include www, and wordpress was configured without www, so there was a loop redirect.
January 26, 201115 yr Author Nope, they're all correct. If I change the settings to default the site works dandy, just when i change it back to my custom one it gives me the htaccess error. Which IS writable and readable.
January 26, 201115 yr had a read through again. If I understand correctly, your wordpress install is in the 'blog' subdirectory. I think the problem is your page name is also 'blog'. So its getting confused. What are you using your wordpress bit for? Is it only the blog posts?
January 26, 201115 yr Author Yeah, the blog is a subdirectory - so if I had just 1 index.html file in there with "Hello World", the webpage blog.elliothesp.co.uk would say "Hellow World". But instead I have all the wordpress files in there. As as for the blog, at the momennt, I post a new post, and the front page gets updated with the latest post, and when thats clicked it takes me to the single post (single.php). The "Blog" link at the top is to display all my blog posts on a single page. I created a new file called "bloglinks.php", gave it a template name, and then in the admin section I created a new page called "blog" and used the template name given in "bloglinks.php". Then in that page you can click on any post and it takes you to the single.php again. As for the permalinks, like I said, when set to default I get elliothesp.co.uk/page_id=452 or whatever and it works, as soon as the custom one is used, the Blog pages link gets updated to elliothesp.co.uk/blog and it doesnt work :/
January 26, 201115 yr Not sure if this will work, but give it a go. Take the bloglinks template and name it index.php, and remove the comment at the top. Then just delete the page named blog in the wordpress admin, or set it to draft. Go to Settings>Reading and make sure that the"Front Page Displays" is set to "Your latest posts"
January 26, 201115 yr Not sure if this will work, but give it a go. Take the bloglinks template and name it index.php, and remove the comment at the top. Then just delete the page named blog in the wordpress admin, or set it to draft. Go to Settings>Reading and make sure that the"Front Page Displays" is set to "Your latest posts" He can't do that due to the way it is setup. Wordpress is installed to a blog subdomain. However it has been configured so that the index.html page in the root loads Wordpress if you understand - if not I will explain later when I can access the FTP. We did it like this - http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory The issue seems to be that when a new page is made, Wordpress creates it and only assigns it the URL elliothesp.co.uk/pagename instead of blog.elliothesp.co.uk/pagename Ie. The page in Wordpress called Contact send the URL to here http://elliothesp.co.uk/contact-page when the location of the file is actually http://blog.elliothesp.co.uk/contact-page However when it is loading the subdomain version, it doesn't load the images As you can see below, the permalink suggestions are not taking the subdomain into account: hxxp://elliothesp.co.uk/2011/01/sample-post/ Edited January 26, 201115 yr by Evostance
January 26, 201115 yr Author Well my brother sorted it (Evostance). Wordpress wasnt recognising that the blog subdomain folder was a subdomain folder. Had to change some things and make it into a normal folder, which isnt really what I was looking for but its done the trick
Create an account or sign in to comment