Jump to content


  • Posts

  • Joined

  • Last visited

Previous Fields

  • Languages
    (x)html, css, SEO, php(ish), javascript(ish)

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
    the world of dragons and monsters

real_illusions's Achievements

Dedicated Member

Dedicated Member (4/7)



  1. The domain A records were changed, but were changed back again. I've looked into those search results (or similar) but not found anything solid that relates to this situation. I'm not aware of any rewrite rules on the server, its a windows server. I dont have access to it though, but I do have a contact for someone who does have access to it.
  2. I have a strange problem (not personally, but a website has a problem...)....anyway. Quick history lesson.1. Build a new website for a client.2. Initially was going to change hosting, and had the A records changed on their DNS records.3. Didn't go to plan due to security issues surrounding the A records and adding a domain to a new server solely on A records. DNS was reverted after 2-3 days downtime.4. New site uploaded onto old/current server. New home page is index.php, which didn't exist on previous site (as it was using index.htm or something else). Now, here where it gets a bit complicated. The site works fine for me, in all browsers, including the browser (Chrome in my case) I used to try the site when the DNS change was taking place.Client were also doing the same, but im not sure what browser they were using. Client says, that a week after the new site went live on their current server, in IE9, they are getting a 404 error. But not just any 404, its a Wordpress 404, in the new design. (previous site didnt use WP).Site works for them in all other browsers and other computers, such as Firefox and IE8. I thought this was simply a caching issue with the browser. They have cleared cache and history in ie9, but with no success. The rest of the pages work, and index.php works fine when accessed, it just the root url example.com/ that gets the 404. Is there anything that can be done so they can view the site?
  3. Ah, that was it, the - missing in the expression. Always something so simple you overlook and then someone else points it out and you feel like an idiot. Thanks
  4. Hi all, I have a rule setup thats similiar to another that works, but this one doesn't, and I cant work out why. Rule is as follows: RewriteRule ^latestnews-([a-zA-Z]+)/?$ newsitem.php?item=$1 [NC,L] Where the ending variable is used to get a database item, and thus displays the right content on the page, and is also displayed in the friendly URL. For example: /newsitem.php?item=newsitem-goes-here would appear as: /latestnews-newsitem-goes-here But instead, I get a 404 error. Now, I have a similiar setup on another page but that uses PHP switch statements to determine the content as the amount of content is quite small compared to this one that uses a database. The un-friendly URL with the variable in works fine, displays the content all ok, its just when accessing the friendly URL that it all goes a bit wonky and spits out a 404. Any ideas?
  5. Woo, finally, it works! It was the slash that was the problem. Thanks
  6. Have put in example.co.uk instead of the actual URL, and replaced a couple of page file names, and xx'd out the IP address that was causing problems. <Files .htaccess>order allow,denydeny from all</Files> ErrorDocument 400 /error400.phpErrorDocument 401 /error401.phpErrorDocument 403 /error403.phpErrorDocument 404 /error404.phpErrorDocument 500 /error500.php DirectoryIndex index.php RewriteEngine onRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.co.uk/.*$ [NC]RewriteRule \.(gif|jpg)$ http://www.example.co.uk/dontsteal.gif [R] redirect 301 /oldpageone.php http://www.example.co.uk/newpageone.phpredirect 301 /oldpagetwo.php http://www.example.co.uk/newpagetwo.phpredirect 301 /oldpagethree http://www.example.com/newpagethree.php order allow,denydeny from xx.xx.xx.xxallow from allRewriteCond %{HTTP_HOST} ^example\.co.ukRewriteRule (.*) http://www.example.co.uk/$1 [R=301] RewriteRule ^/([a-zA-Z]+)/?$ location.php?area=$1 [NC,L]
  7. Other rules are working on the server (like non-www to www). Have taken off any [L]'s on other rules as that indicates its the last rule I believe, and still no joy.
  8. Oh yes, forgot about that. But still nothing when adding in the a-z part. Have tried removing the '+' bit but again, 404 error. Same with removing the /?, or even just ? or /, all 404 errors.
  9. I have this: RewriteRule ^/([A-Z]+)/?$ location.php?area=$1 [NC,L] Which doesn't create a 500 server error, but I still 404's when trying to access /areagoeshere for example. The underlying url is location.php?area=areagoeshere Why is it doing this?
  10. Cant make it do what I want it to. Found a few online generators but none seem to either do the trick I want or the code they product doesn't work. It doesn't produce a 500 error, it just produces a 404 error on the friendly url. Stuff like:RewriteRule /(.*) /page.php?page=$1 [PT] Even hard coding it this way doesnt work: RewriteRule ^/Something$ page.php?variable=Something And yes Rewrite Engine is on.
  11. Hi, If I have a page URL like this: example.com/page.php?variable=somethingexample.com/page.php?variable=something-goes-here Then how do I get it to show example.com/somethingorexample.com/something-goes-here via .htaccess? And would it still work? As in, would the browser pickup the variable and display the right content? Or is there a better way of doing this? Thanks.
  12. Hi,I've found the if_home and if_front_page to be potentially useful..but..also found that it causes problems.Current setup is that in the index.php file I have some static content followed by the list of blog posts, limited to only 1.When clicking on "older posts", it goes to /page/2/ as the URL, but its basically a repost of the home page.I then did this:<?phpif ( is_front_page() ) {query_posts('showposts=1');} else {query_posts('showposts=10');}?>And also surrounded the static content in a similiar way<?phpif ( is_front_page() ) {// static content} else {// nothing at all}?>I also tried it with is_home function, but neither work. I just get a repeat of the home page on a different URL and the most recent post rather than a list of the 10 recent posts. Anyone know why and how to get it to work?Thanks.
  13. It was all valid HTML when I did the input inside a label...although if the name attribute is required, but still valid HTML? Hmm..will have to see about that. Are the W3 saying that the input is valid without a name attribute, but yet its required for processing the form...interesting...
  14. Hmm..why is it a bad idea?Anyway...I would need the 2 lowest removed (so to speak) and the rest totalled up.Will see how those 2 queries work...
  • Create New...