•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,624 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,187 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1308 | Replies: 7
![]() |
•
•
Join Date: Jul 2004
Posts: 36
Reputation:
Rep Power: 5
Solved Threads: 0
I'm kind of new to PHP. I wanted to know how to get my site to open in it's original url ie: http://blah4site.com/name instead of http://blah4site.com/name/index.php or having a slpash page and then going into the http://blah4site.com/name/index.php, when someone first visits the site. I hope this isn't too confusing. Here is an example site: click See how her's opens to the original url and then if you hover over 'main' it takes you to http://www.lunaestas.com/savvy/index.php. So this must happen somewhere within the php file? How do I do this?
•
•
Join Date: Jul 2004
Posts: 194
Reputation:
Rep Power: 5
Solved Threads: 2
Try to put it in .htaccess file.
It's not tested yet. Please let me know the results.
It's not tested yet. Please let me know the results.
•
•
Join Date: Jul 2004
Posts: 194
Reputation:
Rep Power: 5
Solved Threads: 2
Sorry did not make clear. Put the below code in .htaccess
•
•
Join Date: Jul 2004
Posts: 36
Reputation:
Rep Power: 5
Solved Threads: 0
I tried it this way Redirect /name/ http://blah4site.com/name/index.php and I got redirection URL has exceeded its limit and said it may be caused by cookies that are being blocked. Nothing happened with the code the other way.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- mysql errors, from submit.php and index.php (PHP)
- turn this index.php to this index.php?blablabla (PHP)
Other Threads in the PHP Forum
- Previous Thread: PHP Search pagination problem
- Next Thread: Help read datas from LDAP by PHP.


Linear Mode