4 Replies - 3616 Views - Last Post: 07 December 2013 - 02:40 AM

#1 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 38
  • View blog
  • Posts: 897
  • Joined: 06-July 13

.htaccess

Posted 07 December 2013 - 02:04 AM

I know very basic apache, and how to get a custom error page - but is it possible that instead of redirecting to an error page like:

ErrorDocument 400 errors/400.php



I can redirect to one like:

ErrorDocument 400 errors/index.php?error=400



(or something similar?)
Is This A Good Question/Topic? 0
  • +

Replies To: .htaccess

#2 Peter O  Icon User is offline

  • D.I.C Head

Reputation: 83
  • View blog
  • Posts: 199
  • Joined: 19-October 13

Re: .htaccess

Posted 07 December 2013 - 02:29 AM

Yes you can.
Was This Post Helpful? 1
  • +
  • -

#3 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 38
  • View blog
  • Posts: 897
  • Joined: 06-July 13

Re: .htaccess

Posted 07 December 2013 - 02:30 AM

Is it the way I've done it, as it isn't working on my site?
Was This Post Helpful? 0
  • +
  • -

#4 Peter O  Icon User is offline

  • D.I.C Head

Reputation: 83
  • View blog
  • Posts: 199
  • Joined: 19-October 13

Re: .htaccess

Posted 07 December 2013 - 02:39 AM

Try adding / to the beginning of the path.
ErrorDocument 400 /errors/index.php?error=400

Was This Post Helpful? 1
  • +
  • -

#5 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 38
  • View blog
  • Posts: 897
  • Joined: 06-July 13

Re: .htaccess

Posted 07 December 2013 - 02:40 AM

Brilliant thanks - that was all it was.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1