| | |
Changing Url Output
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
I have pages written in html that use javascript and css, what I would like to do is use php to change how the url comes out.
So I would like the url to look like mywebsite.com/index.php?xx1122 or something like that without disclosing the location of the html files or the type of files they are.
I have been working on this for 3 days and still cant find an answer to this. Im hoping someone can help me with this.
Please keep in mind that I am a php newbie. Thank you all.
So I would like the url to look like mywebsite.com/index.php?xx1122 or something like that without disclosing the location of the html files or the type of files they are.
I have been working on this for 3 days and still cant find an answer to this. Im hoping someone can help me with this.
Please keep in mind that I am a php newbie. Thank you all.
•
•
Join Date: Apr 2008
Posts: 53
Reputation:
Solved Threads: 10
You would have to use a .htaccess file to do that.
.htaccess files are straightforward once you are used to them, but can be a little tricky to begin with.
Please could you post an example of the current url and what you would like the replacement url to be?
That way, maybe someone can give you an example syntax for the .htaccess file.
Please note, if you're not sure what you are doing with the .htaccess, you could potentially break other urls on your website.
.htaccess files are straightforward once you are used to them, but can be a little tricky to begin with.
Please could you post an example of the current url and what you would like the replacement url to be?
That way, maybe someone can give you an example syntax for the .htaccess file.
Please note, if you're not sure what you are doing with the .htaccess, you could potentially break other urls on your website.
Currently the url is pretty straight forward http://mywebsite.com/folder/folder/folder/file.html
I would like it to be something without so many folders and to not end in html. but something that doesn't let them know where the file is such as http://mydomain.com/get.php?12345
I would like it to be something without so many folders and to not end in html. but something that doesn't let them know where the file is such as http://mydomain.com/get.php?12345
![]() |
Similar Threads
- Returning the output of a url into a variable (PHP)
- Changing an URL (Linux Servers and Apache)
- damaged one output of Nvidia 6800? (Monitors, Displays and Video Cards)
- code to hide the url using servlet filter (JSP)
- Changing URL in DMOZ.. Is it possible?? (Search Engine Optimization)
- Disable URL change via URL bar (PHP)
Other Threads in the PHP Forum
- Previous Thread: Blank php pages that have mysql connections
- Next Thread: PHP Positioning help please
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql navigation number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white xml youtube





