Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Off topic, News and Updates
 Is there a way via htaccess to .......
Author « Topic »  

V45
Advanced Member

United Kingdom
416 Posts

Pre-sales questions only
(More Details...)

Posted - 06/26/2018 :  13:49:19  
Hopefully someone can advise if the following is doable via the htaccess file. A client of mine has a client billing system on their website and for the client to access the client area the URL is as in 1 below. What he wants to know is is it possible to rewrite the URL via htaccess so as to use the much shorter URL in 2 ?

1. https://domainname.co.uk/secure/billing/clientarea.php

2. https://domainname.co.uk/clientarea.php

The site isn't live yet

Will - Bolton Manchester UK

Andy
ECT Moderator

95440 Posts

Posted - 06/26/2018 :  13:59:58  
Hi Will

I'm sure it is possible to set up redirects via the htaccess file but is this client area you're referring to the vsadmin folder or something else?

Andy

Please feel free to review / rate our software

V45
Advanced Member

United Kingdom
416 Posts

Pre-sales questions only
(More Details...)

Posted - 06/26/2018 :  14:17:45  
Hi Andy

It is not in the vsadmin folder. It's been kept totally separate and sits in the secure/billing folders. I've been searching through stuff on the billing systems forum tonight, as well as online generally, but I just can't make any headway.

I thought I'd post here & give my favourite 'college of knowledge' a try for an answer

Will - Bolton Manchester UK

ITZAP
Ecommerce Template Guru

Australia
1017 Posts

Posted - 06/26/2018 :  18:38:46  
Hi Will,
I presume your client wants to tell customers to visit the short and simple URL (2) which will then instantly redirect to actual location, long URL (1). Here is the .htaccess entry to accomplish that:

# ====================================
# URL Redirects
# ====================================

redirect 301 /clientarea.php https:// domainname.co.uk/secure/billing/clientarea.php


Or you can simplify the short URL even further.

# ====================================
# URL Redirects
# ====================================

redirect 301 /clients https:// domainname.co.uk/secure/billing/clientarea.php


Remove the space I added after https://
I put all redirect 301 entries near end of the .htaccess file.
Presume in the <head> of clientarea.php you have this entry:

<meta name="robots" content="noindex, nofollow">

Gary

Edited by - ITZAP on 06/26/2018 18:52:06

V45
Advanced Member

United Kingdom
416 Posts

Pre-sales questions only
(More Details...)

Posted - 06/27/2018 :  00:34:38  
Hi Gary,

That works a treat, thank you.

[quote]Presume in the <head> of clientarea.php you have this entry:
<meta name="robots" content="noindex, nofollow">[/quote]

That is not in the head as the structure uses a common header.tpl file which is common to the rest of the billing system.

Will - Bolton Manchester UK
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000