All Questions

114
votes
4answers
18425 views

Reference: mod_rewrite, URL rewriting and "pretty links" explained

"Pretty links" is an often requested topic, but it is rarely fully explained. mod_rewrite is one way to make "pretty links", but it's complex and its syntax is very terse, hard to grok and the documen...
1655
votes
18answers
911434 views

Modify the URL without reloading the page

Is there any way I can modify the URL of the current page without reloading the page? I would like to access the portion before the # hash if possible. I only need to change the portion after the do...
47
votes
8answers
83898 views

How to create friendly URL in php?

Normally, the practice or very old way of displaying some profile page is like this: www.domain.com/profile.php?u=12345 where u=12345 is the user id. In recent years, I found some website with ver...
227
votes
20answers
31477 views

How does Stack Overflow generate its SEO-friendly URLs?

What is a good complete regular expression or some other process that would take the title: How do you change a title to be part of the URL like Stack Overflow? and turn it into how-do-you-cha...
20
votes
2answers
15591 views

URL Friendly Username in PHP?

On my PHP site, currently users login with an email address and a password. I would like to add a username as well, this username they g\set will be unique and they cannot change it. I am wondering ...
44
votes
10answers
63175 views

How to remove file extension from website address?

I am designing a website. I want my website address to look like the following image: I don't want my website to look like http://something.com/profile.php I want .php extension to be removed in ad...
31
votes
7answers
47041 views

How to hide the .html extension with Apache mod_rewrite

I have a small number of static sites where I simply want to hide the .html extension: the url /foo fetches the static file /foo.html the browser still displays the url /foo The client can then se...
3
votes
4answers
8262 views

Remove .php extension (explicitly written) for friendly URL

htaccess to remove the .php extension of my site's files. RewriteEngine on RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)$ $1.php [L,QSA] Now,...
16
votes
10answers
37947 views

Automatic clean and SEO friendly URL (slugs)

Definition From Wikipedia: A slug is the part of a URL which identifies a page using human-readable keywords. To make the URL easier for users to type, special characters are often remov...
0
votes
7answers
15120 views

.htaccess mod_rewrite > 500 Internal Server Error

I am new with .htaccess, so this might be a dummy question :). My original link is: http://example.com/CareerDays/index.php?u_type=admin And I'm trying to make it look like this: http://example.c...

Previous Next