A URL rewrite engine is software that modifies a web URL's appearance (URL rewriting). Rewritten URLs (sometimes known as short, fancy URLs, or search engine friendly - SEF) are used to provide shorter and more relevant-looking links to web pages. The technique adds a degree of separation between ...

learn more… | top users | synonyms (1)

1
vote
1answer
128 views

URL rewrite from www.domain.com/sudirectory to http://domain.com/subdirectory

I need a solution for the following problem: I use a CMS and want the backend only be available at http://domain.com/backend and not at http://www.domain.com/backend. How do I have to change my ...
1
vote
1answer
49 views

Geolocalization and Redirection

I have a multilanguage website. My project was to add the Geolocalization so base on the country that open the site to redirect in the specific url with the right language. The structure of the ...
1
vote
1answer
31 views

.htaccess rewrite rule domain alias doesn't work

I have a site called: www.example.com this is the main domain. Now I have a Alias: www.example2.com. I want that example2.com will be forwarded to a subdomain of the main domain to ...
0
votes
0answers
13 views

URL Rewrite two rules not working together

I have a rule to redirect from domain.com to www.domain.com <rule name="Redirect to WWW" stopProcessing="true"> <match url=".*" /> <conditions> <add ...
0
votes
0answers
15 views

URL rewrite issue with cakephp

I am using cakephp framework 2.2.2 I want to create personalize URL for user if user enter username=pragnesh then they can access my site like http://pragnesh.mylocalhost.com same as in ...
5
votes
7answers
5k views

How do you remove invalid characters when creating a friendly url (ie how do you create a slug)?

Say I have this webpage: http://ww.xyz.com/Product.aspx?CategoryId=1 If the name of CategoryId=1 is "Dogs" I would like to convert the URL into something like this: http://ww.xyz.com/Products/Dogs ...
2
votes
2answers
306 views

Using .htaccess, can you hide the true URL?

So I have a web hotel with 1 main website http://www.myrootsite.com/ and a few websites in subdirectories, in a folder called projects. I have domain names pointing to the subdirectories, but ...
2
votes
1answer
36 views

Apache Redirect for Internal Traffic Only

We have a page, gateway.school.edu, where users have to fill out a recaptcha before being directed forward to our password reset. I would like any internal traffic, any user agent on our network with ...
-2
votes
0answers
7 views

URL rewrite rule need help [duplicate]

I am new to this concept. I am planning to do the following rewrite rule in IIS using url rewrite www.example.com/abc/ to www.example.com/test/test.aspx Please help in creating a rewrite rule. ...
0
votes
1answer
82 views

Showing content from pages at different URL's (masking), possibly with .htaccess

If I have URL's like:- domain.com/category/widgets/filter/blue domain.com/category/widgets/filter/red And it is pretty difficult to reconstruct them to something like:- ...
0
votes
0answers
3 views

htaccess rewrite containing “rsform” doesn't work [closed]

The guys at ProWebmasters suggested moving this question to stackoverflow so here I am, original question: ...
0
votes
0answers
21 views

Serving images from public folder or by imagecache?

I am using Intervention/imagecache on my Laravel website, which creates thumbnails on-the-fly by URL manipulation. So thumbnails are automatically created with this route: ...
1
vote
1answer
25 views

Rewrite Rule for Manipulating Query parameter - middle value in long Query Value

Trying to achieve Source - https://rrr.rrr.com/us/Product-Family/Products/c/Products/layout?layoutType=false&page=0&grid=true&q=:relevance:DriveType:Flash:ProductFamily:Prd 1 To ...
1
vote
1answer
67 views

Caching of JS and CSS files – Apache mod_headers doesn’t take effect

As suggested by an answer on SO, I'm trying using a version number on my JS and CSS files so that the browser will only make a request when the JS or CSS version number is changed in my PHP file. To ...
5
votes
3answers
19k views

How to remove trailing slashes from URL with .htaccess?

The situation Across the entire domain, we'd like the URLs to hide file extensions and remove trailing slashes, independent of the domain name itself (as in, works on any domain). Sample of our ...
6
votes
3answers
306 views

Why treat these as URLs with different path capitalization and trailing slash as different?

These are all strictly different urls: http://www.example.com/page http://www.example.com/pAge http://www.example.com/page/ http://www.example.com/paGE/ I get that it conforms to the strict ISO ...
3
votes
2answers
63 views

Remove extension from URL using a rewrite without resulting in a redirect loop

On the server, I have a file (on the filesystem) called page.html, which I want to be accessed as site.com/page So if someone goes to site.com/page.html, it should 301 redirect to site.com/page I've ...
1
vote
1answer
65 views

URL slugs: ideal length, and the real SEO effects of these slugs

this question is addressed widely on SO and outside it, but for some reason, instead of taking it as a good load of great advice, all this information is confusing me. ** Problem ** I already had, on ...
1
vote
2answers
75 views

htaccess rewrite doesn't work

I'm trying to redirect url's in my /joomla/ folder containing "rsform" to the same url but except for /joomla/ /formulieren/. However my tried .htaccess rewrite doesn't work. I tried: RewriteEngine ...
4
votes
1answer
49 views

Statically mapping a PHP script to another script using an .htaccess file results in 404 errors

After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404 status errors. My goal: A 'static' rewrite of URLs, as follows (user clicks or enters the one ...
1
vote
2answers
1k views

How to handle CNAME host redirect to virtual directory?

I have an internal website and virtual directory http://server2012/logs. I created a CNAME on my DNS server as LOGS -> server2012. I would like to set it up so that http://LOGS redirects to ...
3
votes
1answer
120 views

Can I redirect a root site under IIS to a subdirectory, without affecting other applications?

I'm running IIS 7.5 on Windows Server 2008R2. I currently run a site at the root of mydomain.edu. I also have a variety of applications (e.g., mydomain.edu/calendar, mydomain.edu/research, ...
1
vote
1answer
266 views

Allow (and correct the URL) when there is a special character such as %26 using IIS and the rewrite module

I'm struggling with a legacy app that uses special characters like %26 in the URL. The characters don't affect the app but can't be changed, so I'm trying to get IIS to deal with them. I've tried ...
1
vote
4answers
65 views

Using a .htaccess to RewriteRule and Redirect 301 at the same time?

I have a couple of specific URLs that I want to display differently on my website, like this: RewriteRule ^contact$ contact.php To get ride of the ".php" extension. And to be SEO friendly (to ...
1
vote
1answer
40 views

How can I create a shorter alias URL to a longer URL using an .htaccess file?

Using an .htaccess file, I want to make one specific URL have a shorter alias like this: Original URL: ...
1
vote
1answer
40 views

Apache URL rewriting with masking and includes outside of DocumentRoot

I have an Apache 2.2.15 web server with the primary site at /web/mybiz which corresponds to http://mybiz.domain.com. We now have a new subdomain http://abc.mybiz.domain.com with the homepage living at ...
1
vote
1answer
250 views

Masking / mapping URL's with .htaccess

I've recently been trying to come up with a way of masking the visible URL in the browser (so not 301 redirecting) and still show the same content as the original URL. Here is the scenario... ...
0
votes
2answers
103 views

How can I remove the .html extension for static webpages that are indexed so they'll still work in a WordPress site?

I have a static HTML website with less than 100 pages and 99 of them are indexed in Google's search engine. I want to convert it into a WordPress website, but there are some problems I'm worried ...
0
votes
1answer
138 views

Code for redirecting an HTML page without an extension using an .htaccess file results in a 404 error

I'm trying to redirect an HTML page to a WordPress page which has no extension. The result of redirecting example.com/fa/home.html to example.com/fa/ is a 404 page not found. As you can see they're ...
6
votes
2answers
119 views

Google sitemap priorities, am I doing the right thing?

I've built a website which has maritime weather and tide data for UK locations, and each location has 7 day forecast (where data is available). My URL structures are like this: ...
1
vote
1answer
227 views

301 redirection removes UTM tags from URLs

A page redirects to another page using a 301 redirect in a .htaccess file. If try to access the page from a URL with UTM tagging after redirection, it removes all UTM tagging. Is this normal ...
1
vote
2answers
44 views

URL Rewrite with spaces or with -?

Which URL is more SEO? mydomain.com/category-name/article-name.html OR mydomain.com/category name/article name.html I have read some articles about URL Rewriting but there I can't find any ...
2
votes
1answer
289 views

.htaccess rewrite , parked domain on another site to read the proper domain name

I have a parked domain example.co.uk on another domain name web-space in a folder and need to rewrite the domain name in the browser URL as it currently shows the other domain name while browsing and ...
1
vote
1answer
91 views

RewriteRule to send all URLs with `mod` in them to the `moderator` directory

I have a .htaccess file in the root directory of my project, that contains all the rewrite rules for the site to functions. Most of these rules belong to the mod section of the site, and only two of ...
0
votes
1answer
40 views

URLs created by Googlebot show up as 404 errors

I have a situation where Google is crawling our site. That is fine, no problem, but the issue is that the crawler is creating URL paths that do not exist. /events is a root folder on our site. ...
2
votes
1answer
36 views

Problem with htaccess rewrite condition

I needed to redirect site.com/var1/var2/var3/... to site.com/index.php?myvars=var1/var2/var3/... This is the code I wrote myself: RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php ...
0
votes
1answer
108 views

Does .html extension in URL help for SEO? [duplicate]

I am working on dotNET and I have changed URL extension from .aspx to .html. Is it good to use .html extension ? My actual URL is www.example.com/Project.aspx?Id=2&Type=this-is-something I have ...
3
votes
1answer
82 views

What HTTP header code does URL-Rewrite return?

If I used the native URL-Rewrite module to rewrite (not redirect) a URL, does it return 302, 301, or 200? Is this method OK to use for a permanent URL rewrite? Here is sample code for the redirect: ...
0
votes
0answers
18 views

Best URL for cars related website? [duplicate]

If this was your website, what will be the URLs for each car on sale? http://www.autoscout24.eu/Details.aspx?id=247572735&asrc=ha I'm working on a car dealership website. What should be the ...
6
votes
5answers
1k views

WWW.yoursite.com or HTTP://yoursite.com which one is futureproof?

http://yoursite.com www.yoursite.com http://www.yoursite.com yoursite.com Which of these would you choose as your favourite to work with, if you were to make a site for 2011 and beyond, which ...
1
vote
1answer
469 views

.htaccess URL rewriting friendly URL with 2 parameters, the second parameter is optional

I'm kind of stuck at this part and was hoping that I'd get some assistance. I'm building a highscores page in PHP, that's going great, it works. However, I dislike the idea of index.php?skill=name and ...
1
vote
1answer
21 views

Hide query parameters in RewriteRule

I have the following rule: RewriteRule ^farm-products/([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/([0-9]+)/([0-9]+)/?$ products.php?$1&page=$2&what=$3&t=$4&cat=$5 The user sees: ...
1
vote
2answers
168 views

What is the SEO-recommended method for using underscores and dashes in URLs that contain geographic locations?

In reading through this article: In Subfolder & File Names, Use Dashes, Not Underscores Good: Good: http://www.domain.com/sub-folder/file-name.htm Bad: ...
1
vote
1answer
48 views

Rewrite and virtual hosts for moving subdomains to folder-like requests

I am administering a website that previously had mini-sites set up for various physical locations using sub-domains (city1.site.com, town2.site.com, etc.) and I now need to disable these mini-sites. ...
1
vote
0answers
122 views

How can I redirect URLs in Google App Engine to new ones?

I need to redirect a couple of my old URLs to new ones. I use Google App Engine for deploying my website online. Is app.yaml the only way I can redirect the URLs? I am very new to Python and wish ...
4
votes
3answers
1k views

what are benefits of URL rewriting?

URL rewriting has become quite popular, but I think it only adds more complexity to the Web. Old fashioned URL's are often called "dirty URLs", so I'll use that term. It is argued that with ...
3
votes
2answers
64 views

multiple IPs/webservers, single domain

Our main website is on a Windows server. We're migrating our Blogger blog to WordPress and I think I want to use a Linux-based webhost instead of our Windows server for this, just because I understand ...
0
votes
0answers
27 views

From 302 to 508 rediect, how is Google indexing it?

I'm working under an IIS environment. I would like to put up a splash page for our site maintenance, however, the splash page (app_offline.htm) has to be served on a separate site, since our ...
2
votes
2answers
230 views

URL rewrite - Cross domain javascript

I have a site site.domain1.com that needs to launch content from another domain - content.domain2.com but I encounter cross-domain JS issues when doing this directly. I basically need to make ...
18
votes
5answers
2k views

Why are extensions often hidden on URLs?

Many times I see that URL extensions are hidden (e.g. .html, .php), but not all websites do this. Why do webmasters hide the extension? Is it for security, for the URL to look cleaner, or for some ...