Questions tagged [vanity-url]

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.

76 questions
1
vote
1 answer

Google Analytics & vanity urls?

Is there a way to use Google Analytics to track vanity urls that redirect to other site locations? Like this: http://www.focusonenergy.com/utilities Resolves to: http://www.focusonenergy.com/about/participating-utilities I'd like to know how many…
1
vote
1 answer

HTACCESS code not working for vanity URLS

Right now, the following URLs are displayed: www.mysite.com/account.php?username=$username What I want is: www.mysite.com/$username I'm using the following code in my htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…
Caro_deb
  • 279
  • 1
  • 8
  • 25
1
vote
1 answer

Combine .htaccess rules: remove extension and rewrite URL variables

I have an .htaccess file with the following rules # replace 'RewriteBase' with current working folder # put '' in if you are in the root folder # put '' in if you are in a subfolder of the…
C. Ovidiu
  • 1,104
  • 2
  • 18
  • 38
1
vote
3 answers

Vanity URLS: mod_rewrite and SQL query return bad flag delimiters error

I'm using a very simple method to enable vanity URLS on my website and yet, i get a 500 server error. I want to enable URLs like this : mysite.com/ben instead of mysite.com/profile.php?id=2 Here's the code i'm using in my htaccess file: RewriteCond…
Caro_deb
  • 279
  • 1
  • 8
  • 25
1
vote
2 answers

Sub-Folder to PHP Vanity urls

i am creating php social project which every user has his own profile ( vanity url ) like : www.mysite.com/myname and i used this codes : 1.profile.php
ArsanGamal
  • 158
  • 1
  • 10
1
vote
1 answer

Vanity Url ID issue

I am trying to do vanity url. I want this http://mydomain.com/series/profile.php?profile_id=751130015 to become something like this http://mydomain.com/series/751130015 I've tried creating a new file '.htaccess' on the directory and add this…
user2310422
  • 555
  • 3
  • 9
  • 22
1
vote
1 answer

HTACCESS | Adding a second rewrite rule?

I'm trying to write my .htaccess to support two vanity url's, the code will speak for itself as I'm not very good with .htaccess. RewriteRule ^([a-zA-Z0-9-]+)/?$ index.php?p=$1&s=$2 [L,QSA] Upon going to for example…
Rbn
  • 381
  • 2
  • 4
  • 11
1
vote
1 answer

Zend Framework Vanity Url Pagination not Working

I'm working on a Zend Framework application and I just got my vanity routing working using the guide at http://tfountain.co.uk/blog/2010/9/9/vanity-urls-zend-framework/, but my pagination isn't working, and none of the vanity url guides I've been…
jaimerump
  • 882
  • 4
  • 17
  • 35
1
vote
1 answer

CQ5 - Google analytics issue for vanity URLs

In our project, we have configured vanity URLs such that the user can enter the vanity URL in the address bar which will redirect them to the original URL. For example: If user inputs 'http://www.abc.com/partner', it will redirect them to…
alagar
  • 13
  • 3
1
vote
2 answers

How to create vanity url for apple appStore?

Recently news are coming out that one can create vanity url for Apple Appstore. But I cant find any options additionally added in itunes connect to do it. any help is appreciated :)
raw3d
  • 3,475
  • 1
  • 22
  • 25
1
vote
2 answers

issue when using .htaccess to create a vanity URL when the php file is not in the root folder

I’m having an issue using the .htaccess file to create a vanity URL. My .htaccess file is currently saved in my site’s root folder (mysite/.htaccess). The page that I am writing the vanity URL for is one level down (mysite/jobs/job.php). The code in…
jnell
  • 13
  • 2
1
vote
2 answers

What kind of route would I need to provide vanity urls?

I'd like to provide my users a vanity url, something like: www.foo.com/sergio What kind of route would I need to create? Imagine I have the following controller and action, how can I map a vanity URL to that controller? public ActionResult…
sergserg
  • 21,716
  • 41
  • 129
  • 182
1
vote
2 answers

Custom HTTP handler for URL rewriting + session and application variable

Currently my product page URL is like http://www.localhost:80/products/default.aspx?code=productCode I want to access product page with http://www.localhost:80/productCode I have used HTTP module for this. public class UrlRewritingModule :…
Pradip Prajapati
  • 152
  • 1
  • 4
  • 18
1
vote
1 answer

vanity url for own site

Hello i tried too much and i coudln't find a solution so i decided to ask here currently iam using wordpress website and my pages and posts link will be www.mydomain.com/postname and i want to make members user profile link like…
Bardger
  • 9
  • 2
1
vote
1 answer

mod_rewrite: multi-level URL using a request parameter

I currently have this set up and working fine inside a users folder. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?i=$1 e.g 127.0.0.1/site/users/admin goes to…
Harry
  • 725
  • 3
  • 7
  • 19