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
29 views

How do I redirect a large number of pages in Wordpress when changing plugins?

I have had a WordPress site for two years. It is hosted on a typical WAMP server. I would change it's theme but the one I have chosen doesn't work with the qTranslate or mqTranslate plugin. I'm ...
0
votes
1answer
15 views

Remove folder name from rewrited urls

Consider this URL: http://website.com/gallery/20141111-some-title In this URL I want to hide gallery/ http://website.com/20141111-some-title How can I achieve this using mod rewrite? I used online ...
2
votes
1answer
33 views

Links on Google result list with unnecessary parameters

I have a website that uses .htaccess to turn the parameterized URLs into a folder pattern based URL For example : www.example.com?lang=de&cat=mycategory becomes www.example.com/de/mycategory ...
1
vote
1answer
41 views

Non existent image files are not being handled by PHP as they should due to ngnix configuration

I am currently building a web application. In order for it to work properly I wrote this rule: location / { if (!-e $request_filename) { expires 168h; add_header Pragma public; ...
1
vote
1answer
13 views

What rewrite rule would show the 410 (gone) status for removed forum URLs?

I have removed a forum system from my CMS and now I want to return an 410 status code whenever a search engine visits the former posts. I know that I have to use a number of Rewrite Rules to do the ...
1
vote
1answer
15 views

URL RewriteRule doesn't work when using WP Database Participants in my WordPress website

I'm using WP Participants Database plugin in a site developed using WordPress and I'm trying to transform: ...
1
vote
1answer
19 views

Should a website landing page redirect to user lang?

I have a multi-languages website where different versions are served this way: https://example.com/<language ID>/[...] The language is either detected from the client or specified from the ...
1
vote
1answer
22 views

Configure JBoss to handle the home page URL instead of requiring users to type a long URL

Question: Is there a way in JBOSS to have different URLs provided by the users resolve to other URLs; i.e. http://OurAppUat/ => http://OurAppUat/web/app?environment=UAT http://OurAppSIT/ => ...
1
vote
1answer
49 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 ...
1
vote
0answers
20 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 ...
1
vote
0answers
37 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 ...
2
votes
1answer
41 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 ...
1
vote
1answer
47 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
97 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 ...
3
votes
2answers
75 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
111 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 ...
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: ...
1
vote
2answers
100 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
53 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
4answers
76 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 ...
0
votes
1answer
236 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 ...
0
votes
2answers
141 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 ...
1
vote
1answer
44 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: ...
6
votes
2answers
134 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
2answers
51 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 ...
1
vote
1answer
333 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
1answer
62 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
102 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
48 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
37 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 ...
3
votes
1answer
262 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, ...
0
votes
1answer
151 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 ...
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 ...
1
vote
1answer
653 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
22 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
226 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
0answers
147 views

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

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 ...
3
votes
1answer
95 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
29 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
323 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 ...
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
1answer
92 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:- ...
1
vote
2answers
47 views

In 2014 has any SEO value rewriting urls? [duplicate]

In 2014 has any SEO value rewriting urls? If my site consistently links product page, and that product page shows a consistent canonical url, is there a real SEO doing this ...
1
vote
1answer
65 views

301 redirect + RewriteRule not working together?

I am using a 301 redirect to redirect a page to another page in the same website, which uses RewriteRule to hide the PHP variables in a friendly URL. My redirection code in .htaccess: Redirect 301 ...
1
vote
1answer
39 views

Apache URL redirection not working with mod_rewrite

I want to redirect the URL: http://example.com/site to http://example.com/~username/site I have the following in my httpd.conf file: RewriteEngine on RewriteRule ^/site/(.*) /~username/site/$1 ...
0
votes
1answer
24 views

Redirect blog archive into certain format

I asked the question in WPSE before, but the answer I got so far is a complicated one. I'm actually looking for a .htaccess way. Here's what the scenario is: My blog archive URLs were like: ...
0
votes
0answers
23 views

Apache/ISS equivalent

I've always used Apache for all my web development work and I'm struggling to get my head around IIS. I've got an API that re-routes all requests to one particular file: 'api.php', how would I do the ...
0
votes
0answers
30 views

Change Subdomain follow IP Country?

I have something don't know to do it. I want to config domain when the User go to my website, system is catching IP Country of user and auto change my subdomain from www.mysite.com/index.aspx to ...
1
vote
1answer
386 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... ...
1
vote
1answer
54 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. ...