Jump to content

Re-directing


knystrom18
 Share

Recommended Posts

Hey, I have a flash object which I cannot edit which links to a page no longer in existence.If I create a page with the name the flash object is looking for, can I put a php redirect in there to bring the user to the intended page?Is there another method that will do this better/more effectively?Thanks,- K

Link to comment
Share on other sites

You could also use an Apache rewrite rule, in an .htaccess or .conf file.If the file you need is 'newflash.php', and the requested file is 'oldflash.php', something similar to the following should work:

RewriteEngine  onRewriteRule    ^oldflash\.php$  newflash.php

http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html

Link to comment
Share on other sites

Got it. It's all good and it's re-directing fine. I had to use a meta re-direct for some reason though. PHP wouldn't do anything.
are you using header? Did you make sure no content is outputted by the page before the redirect?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...