![]() |
|
|
|
|
|||||||
| Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers! |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Issue No: 1 - I want to remove .php from showing up when people access my forum/site. How can I do that? I tried following the guide put up by Hostican but couldn't get the desired results i.e. it still shows.
Issue No: 2 - I want to change the port of my SSH. I managed to do that in the concerned file on the VPS but then putty on my computer doesn't make a contact when I simply change the port. What else needs to be added to putty for it to be able to access my VPS? Thanks in advance. |
|
#2
|
||||
|
||||
|
Quote:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
![]() Quote:
Session, tic the O SSH insert the IP address for your VDS, set the new port #; in [Saved Sessions] type a server name like MyVDS#1 [Save] the session; procede to [Open] ... After that, whenever you open PUTTY, highlight the session name, [Load] & PUTTY will use your new port. If you have multiple servers, you can set a unique port on each of them, then save multiple sessions & [Load] the session (server) you wish to work on.
Last edited by thnet; 03-13-2008 at 08:15 AM. |
|
#3
|
|||
|
|||
|
Issue: 1 - I've read similar entery in one of the articles in the knowledge base present on Hostican's website, but couldn't make it work. It doesn't produce the desired effects. Would you prefer it if I pasted a copy of my .htaccess and see if you can point out the fault?
Issue: 2 - And which files need to be updated on the VPS for the change of port to take place? Cos it seems the port hasn't changed after I made changes to /usr/etc/ssh/ssh_config.txt |
|
#4
|
|||
|
|||
|
Any answers people?
|
|
#5
|
||||
|
||||
|
You could try:
Options +FollowSymLinks RewriteEngine On RewriteCond %{DOCUMENT_ROOT}/$1.php -f RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.+)$ /$1.php [QSA,L]
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | Become a HostICan Affiliate | Create a Support Ticket. |
|
#6
|
||||
|
||||
|
/etc/ssh/sshd_config
|
|
#7
|
|||
|
|||
|
This is my current .htaccess file in /public_html folder, I tried doing the above but still couldn't manage to get the desired results.
Code:
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)$ /$1.php [QSA,L]
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
|
![]() |
| Tags |
| change, file, names, port, removing, ssh |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drupal Install Problem... | Hotwire | Virtual Private Servers (VPS) | 14 | 05-22-2008 10:04 AM |
| Problem with File Owner = None? Simple SSH Command! | Scott | Virtual Private Servers (VPS) | 11 | 03-06-2008 02:13 AM |
| Apache-WHM Parsing Error (1 change per session) | marcOpolo | Virtual Private Servers (VPS) | 0 | 01-29-2008 07:26 PM |
| Change Port Numbers for Virtuozzo & WHM | Gr8-Ideas | Virtual Private Servers (VPS) | 6 | 01-01-2008 03:48 PM |
| How To: Change SSH Port | lnxcode | Virtual Private Servers (VPS) | 14 | 11-24-2007 07:06 PM |