Tagged Questions

URL rewriting module for the Apache web server. It is commonly used for so-called "pretty" URLs, but also provides the power and flexibility to perform various request handling tasks beyond simple substitutions.

I moved my website off of blogger and still have many google search results that add parameters. Originally the parameters were only ?m=1 and ?m=0 and I found code to do that but now I'm seeing this: ...

With the restructuring and enhancement of an Website I need to redirect all existing (old) Links to the new structure:
But it needs to be depending on the URL Parm and then redirected with the same ...

I have this code for removing the .php extension from a URL like this: domain.com/file.php to this: domain.com/file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php ...

Here is an example url.
97006 is the query string.
Customer-Manager is a title that changes for every page.
jobdetails.php is run when a button is clicked which brings you to a page like this below.
...

I am using the front controller pattern in a PHP application on Apache, where the .htaccess captures the requested URL segments and then performs a rewrite passing the URL segments into a query string ...

I am changing domain names for a WordPress site and want to set up a structure like so:
If a user accesses olddomain.com/page, he will be re-directed to newdomain.com/page, etc. In other words, only ...

I've got a list of redirects that isn't working. I'm redirecting 1 domain to another. There are about 10 pages that I have want redirected to unique pages. The rest I want redirected to the home page.
...

So, I've recently started rebuilding my website from scratch, and now I've gotten to the point where I should edit my .htaccess file to make the links more SEO-friendly, etc.
Currently, I am working ...

I'm having problems to rewrite the canonical URL with www to non-www in my domain.
If I try www.example.com and I allways get #404.
Here is all the information about the apache2 configuration.
This ...

I have a lot going on here in my .htaccess, and there's one more redirect I'd like to add, and I'm not sure how to do it.
All .php files are seen as .html, and if an actual .html file exists of the ...

I have a URL that looks like this: http://example.com/board?b=utst (there are a couple variations of similar URLs). However, I want it to look like this: http://example.com/board/utst/. How would I go ...

I have a folder in the root called picture and I want to redirect (applying only to this folder) all the .png urls to:
/picture/index.php
displaying the index.php html content. I mean redirect urls ...

I currently have a website with a working .htaccess that forces https://www upon users visiting the site. I recently created a subdomain "demo.example.com", because both my main site "example.com" and ...

After fiddling around with htaccess for hours upon hours I can't seem to get this just right.
What I need to do is when I try and grab an image (say example.jpg) from /images/, it should firstly be ...

I want to rewrite the url /login to /login/login.php. I have created a .htaccess file in /login with the rule RewriteRule ^$ login.php [L,NC,QSA]. This works great, but the url in the browser becomes ...