Ajax Engine
![]() Ajax Connecting Rod For EA-22 & EA-30 Engine US $325.00
|
![]() AJAX DP-115, 13 1/4 x 16 Engine US $15,000.00
|
![]() Ajax 6 1/2 x 8 CMA, Rebuildable Core Engine US $1,250.00
|
![]() Ajax 6 1/2 x 8, EA-22 Bare Crankcase / Engine Block US $1,000.00
|
![]() Ajax 7 1/4 x 8 EA-30, Rebuildable Core Engines. US $2,000.00
|
| Powered by phpBay Pro |

How can I use .htaccess to force orphan pages to load with a different url, example: bob.php loads /?page=bob?
I use AJAX to load my pages into an iframe. You can get to them directly by putting the variables for the sections i am replacing. So if you go to www.thesmartass.info and click on games and then sega you will get to a sega genesis page. However I want people to be able to directly link to the page by going to www.themsartass.info/sega. I have setup my htaccess file to propertly redirect that page to load my content inside of the iframe. This works great but when a search engine sees my loose php pages it can load them directly. I want to force the referrer that loads those pages to come from my main page or rather make anybody who loads a loose page without my ajax or php load is forced to /sega or something instead.
sega.php loads by itselt, then reloads itself as www.thesmartass.info/sega .
if the request comes from either javascript that links to: javascript:ahah('games/loadsega.php','fs');
or thesmartass.info/sega it will not redirect them.
Try adding this to your .htaccess file:
RewriteEngine on
RewriteRule ^([A-Za-z0-9-_]+).php$ index.php?page=$1 [L]
That will redirect any php page to the index.php on your server and pass a page variable of the page they were trying to access. This is a pretty blanket statement though, keep in mind it will redirect everything.
Recently Purchased:
| Powered by phpBay Pro |









