|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to remove trailing slash from URL in magento
Hi Friends
Does anyone help me to remove trailing slash from the URL in magento? currently my URL is like http://www.websitename.com/index.php/ i want to change this URL to http://www.websitename.com/index.php Thanks in advanced |
|
#2
|
|||
|
|||
|
That's kind of strange.. is index.php a directory? If not, it should not have a slash after it. How are you ending up at that URL?
__________________
Sir, a desire of knowledge is the natural feeling of mankind; and every human being, whose mind is not debauched, will be willing to give all that he has to get knowledge. |
|
#3
|
|||
|
|||
|
Quote:
Sometimes some PHP programs do that as an alternative to URL rewrite. If URL rewrite is not available then they will just put a folder after index.php and just read the url ($_SERVER["REQUEST_URI"]) and parse that back into $_GET data or some other global vars. The server still loads index.php, however it allows the script to have cleaner/shorter urls. You might not like the look of the trailing slash, but it is probably there to clean your urls for links. It shouldn't hurt anything and will take an url like this: /index.php?page=1&product=1118&action=add and change it into something like: /index.php/1/1118/add |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > How to remove trailing slash from URL in magento |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|