All Questions

1655
votes
18answers
909964 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...
106
votes
5answers
176567 views

URL rewriting with PHP

I have a URL that looks like: url.com/picture.php?id=51 How would I go about converting that URL to: picture.php/Some-text-goes-here/51 I think WordPress does the same. How do I go about making...
428
votes
21answers
407733 views

Generic htaccess redirect www to non-www

I would like to redirect www.example.com to example.com. The following htaccess code makes this happen: RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=...
105
votes
25answers
114997 views

How to remove "index.php" in codeigniter's path

How do I remove the "index.php" sticking out in every path in codeigniter somewhere in the center? I want clean non index.php-fied URLs?
10
votes
8answers
3889 views

How can I create friendly URLs with .htaccess?

I'm having a hard time with .htaccess. I want to create friendly URLs for a site I'm working on... Basically I want to convert this: http://website.com/index.php?ctrl=pelicula&id=0221889 http://...
11
votes
9answers
27733 views

How to do URL re-writing in PHP?

I am trying to implement URL rewriting in my PHP application. Can someone share a step by step procedure of implementing URL rewriting in PHP and MySQL? In my application I want to implement followin...
115
votes
6answers
164545 views

.htaccess mod_rewrite - how to exclude directory from rewrite rule

I have 8 lines of rewrite rules in my .htaccess file. I need to exclude two physical directories on my server from these rules, so they can become accessible. For now all requests are sent to index.ph...
115
votes
5answers
73481 views

How do I configure IIS for URL Rewriting an AngularJS application in HTML5 mode?

I have the AngularJS seed project and I've added $locationProvider.html5Mode(true).hashPrefix('!'); to the app.js file. I want to configure IIS 7 to route all requests to http://localhost/ap...
62
votes
8answers
127084 views

.htaccess rewrite subdomain to directory

Is it possible to use .htaccess to rewrite a sub domain to a directory? Example: http://sub.domain.com/ shows the content of http://domain.com/subdomains/sub/
44
votes
10answers
63096 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...

Previous Next