Vanity urls generally refers to those which are devoid of characters like %,&, and extensions like .html,.php, .asp etc and are "human-readable". it normally helps to maintain a proper hierarchy separated by slashes. For example, www.sourcepoint.tk/articles/category/general/ is one such url. it makes any one understand what the page has - Articles categorised under General category.
Questions tagged [vanity-url]
76 questions
0
votes
1 answer
Linkedin Developer API - get others profile info by VanityName
https://api.linkedin.com/v2/people?q=vanityName&vanityName=siva-vanity-url-value
/me url is working for me, but the above mentioned link is not working on postman. Its showing below error.
GET URL:…
0
votes
2 answers
What are some good username / vanity url rules?
This isn't about "how to" as much "how best".
I understand most sites with vanity urls have basic rules:
>4 characters (covers a bunch of useful tokens like "blog" and "jobs", but also a long list of "4-letter words")
start with alpha
alphanumerics…

Ryan
- 14,682
- 32
- 106
- 179
0
votes
0 answers
vanity url and 404
I need vanity urls, how can i make them redirect to the custom 404 page if they are not found in my DB?
.htaccess code
ErrorDocument 404 /url/notfound.php
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f…

Cody
- 1,281
- 2
- 10
- 12
0
votes
1 answer
.htaccess Vanity/Nice URLs Causing 404 Error to be Homepage
I recently switched from using this in my .htaccess file
RewriteRule ^example index.php?page=example [L]
To this:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^./]+)/?$ index.php?page=$1 [L,QSA]
The issue is that if I visit something like…

JacobSa
- 27
- 6
0
votes
1 answer
In Ruby on Rails, how can you use vanity URLs and also redirect to 404s?
At the end of my routes.rb, I have a wildcard match for vanity urls. However, I can't figure out how to redirect unknown usernames to a 404. How can you do this?
~ in routes.rb ~
# Vanity URLs
match ':username', :to => "users#show"
~ in the users…

Geoff
- 9,470
- 13
- 52
- 67
0
votes
1 answer
How do I extend the vanity URL functionality within AEM
I'm working in AEM 6.3. I'm trying to extend the default behavior of vanity URLs such that the following will happen:
User navigates to vanity URL and is redirected to actual URL
An ID that is associated (and authorable) is appended to the…

user1707342
- 11
- 4
0
votes
1 answer
How to get the Google account ID from a Google+ vanity URL
Google+ API did shut down.
Google People API can be used instead, using the same account IDs.
However, People API does not accept names from Google+ vanity URLs.
How can I get the account ID from a Google+ vanity URL, now that I can't use Google+…

Lothar Bongartz
- 36
- 1
- 3
0
votes
1 answer
i have a problem in .htacces (vanity url)
i am using
RewriteEngine On
RewriteCond %{HTTP_HOST} ^http://mywebsite.com/
RewriteRule (.*) http://mywebsite.com//$1 [R=301,L]
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?user=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$…

Balaji Chandrasekaran
- 514
- 1
- 8
- 24
0
votes
0 answers
Build vanity urls with variables stored in a different table from the model
I am trying to build vanity urls with FriendlyId gem for a specific model Teacher to display
www.mysite.com/teachers/{first_name}-{last_name}
instead of
wwww.mysite.com/teachers/{id}
The problem that I encounter is that the information on the…

user6877257
- 45
- 1
- 4
0
votes
1 answer
Webcenter Sites : Vanity URLs for images or PDF
I'm working with Webcenter Sites 12.2.1 and I have a question about templating for medias with vanity URLs.
My users would like to have vanity URLs for some Medias like PDFs or Images or such blobs. I'm able to do so for text based attributes such…

Christophe
- 2,131
- 2
- 21
- 35
0
votes
1 answer
vanity urls clashing with admin urls django
I want to have vanity urls in my django application i.e. user's profile at url like example.com/username . I tried to do it like shown:
urlpatterns = patterns('',
#sitemap generation
url(r'^sitemap\.xml$', sitemap, {'sitemaps':…

Ashish Gupta
- 2,574
- 2
- 29
- 58
0
votes
1 answer
Vanity url don't work
.htaccess file
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} -f [or]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]
RewriteRule ^(.*)$ http://examplesite.com/vanity.php?un=$1 [NC]
php…

user3944364
- 111
- 1
- 2
- 11
0
votes
1 answer
Using Vanity URLs and CanCanCan gem (load_and_authorize_resource error)
I'm attempting to use Vanity URLs in my Rails app so that instead of an ID, the username is shown. I've created the slug so that the username is used in the url instead of the id (everything works here ok), the issue I'm facing occurs when I try to…

Kyle Bachan
- 1,053
- 2
- 15
- 33
0
votes
1 answer
Google Chrome - vanity url being hit multiple times
I have a vanity url such as
www.mycompanyname-survey.com
which does a redirect to
www.mycompanyname-survey.com/survey/page1
If I submit data on the first page, it then goes to www.mycompanyname-survey.com/survey/page2. However, when I do this…

anztenney
- 627
- 2
- 7
- 17
0
votes
1 answer
working of vanity URL CQ5
Can someone tell me the core .js involved in the working of Vanity URL in CQ5? i.e how does the vanity URL (sling:vanityPath) redirect to a page ?
I need to imput in the CQ dialog a parameter along with the vanity URL so when a redirected page is…

stdio.h
- 126
- 3
- 15