Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Web Hosting Services

Notices

Reply
 
Thread Tools
  #1  
Old 10-24-2010, 11:13 PM
daniel77 daniel77 is offline
Hatchling Croc
 
Join Date: Apr 2010
Posts: 5
Default remove slash from text

Hi guys

I am trying to make a 404 page display the end of the url without the slash.

I currently have this code in my 404.shtml page:
PHP Code:
<!--#echo var="REQUEST_URI" --> 
when I type http://www.test.com/Sydney

it shows the text as: /Sydney

Is there any way to just show: Sydney (without the slash)

example
Reply With Quote
  #2  
Old 10-25-2010, 02:14 AM
daniel77 daniel77 is offline
Hatchling Croc
 
Join Date: Apr 2010
Posts: 5
Default Re: remove slash from text

It can't be done the way I was doing it, but found another way to do it with php.

PHP Code:
 <?
echo substr($_SERVER["REQUEST_URI"],1);
?>
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing text in images / editing text in flash mdawg Web Hosting Services 9 03-23-2009 11:51 AM
Spamassassin remove-markup lsimpson Shared Hosting Support 0 11-21-2007 06:09 PM
Text forwarding? lumpy50 Shared Hosting Support 2 07-21-2007 07:31 PM
Scrolling Text? esl Webhosting 4 11-02-2005 11:33 AM

All times are GMT -5. The time now is 03:22 AM.