How we can convert dynamic url into static url? plz provide
code.
Answers were Sorted based on User's Feedback
Answer / sun
Save the page as .html and not .php!
simple as that!
| Is This Answer Correct ? | 14 Yes | 1 No |
Answer / udit rawat
Add an .htaccess file(if using apache)
# Turn on URL rewriting
RewriteEngine On
RewriteBase /
# Allow any files or directories that exist to be displayed
directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]
This redirects all urls to index.php. index.php will be some
sort of front controller that loads scripts based on the url
So in your example:
localhost/mywebsite/mypage
| Is This Answer Correct ? | 3 Yes | 4 No |
How to break a file path name into parts?
Explain what are the two main string operators?
What is the difference between a session and cookies?
Tell us what is the difference between session_unregister() and session_unset()?
How to remove duplicate values from a PHP Array?
Is php an object or array?
Can php run on windows server?
What type of headers that PHP supports?
when ever the user logged in the database table the current registered date will be appeared
How can we know that a session is started or not?
3 Answers Rushmore Consultancy,
Name some of the popular frameworks in php.
Tell me what does pear stands for?