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)

0
votes
2answers
5 views

stopping accessibility of internal script files via mod_rewrite

Turns out after researching, one site found duplicate content on my website. The reason is because the unfriendly php file that friendly URLs link to was apparently discovered by a robot and then got ...
1
vote
1answer
22 views

Link re-interpreted by browser does not work

I have a problem with links generated by php, for example this link works: ...
1
vote
0answers
11 views

UCC cert for single IIS7.5 site with multiple domains forwarded via rewrites

We have a site that has 80-some-odd aliases. In other words, each host name's DNS entry points to the same IP address and port number, and when they reach our IIS7.5 server they are forwarded to the ...
1
vote
1answer
67 views

Redirect subdomain to folder without changing the URL

I'm trying to achieve masking subdomains to folders using .htaccess UPDATE for the sake of clarity: I Would like the user to enter the url: subdomain.example.com and stay in the same url while ...
1
vote
2answers
25 views

Should the canonical tag point to the rewritten URL of the page even if it doesn't have a valid directory structure?

The structure of my url is http://www.somesomewebsite.com/ShowProduct.aspx?ID=12. I am doing a permanent redirect (301) to http://www.somewebsite.com/product-category/12/this-is-my-product-name/. ...
1
vote
2answers
82 views

“There is no subdomain here.” error in creating (one/multi)-level sub-domains

Objective: I want to create multilevel sub-domains. For example, I've a domain like "domain.com," and now I want to create some sub-domains for it. It should be noted that what I'm working on it, ...
2
votes
2answers
65 views

Limit access to rewritten uri based on IP address

I'd like to limit access to a Drupal 7 registration page (/user/register) from certain IP addresses. I've tried to set the apache directive, but it's still letting me access it from an IP that isn't ...
0
votes
0answers
24 views

URL Rewrite - remove ?url=

I have an address which is /blog?url=article-1 Is there a way to just remove the ?url= part and replace it with a forward slash? So in the end the url should look like /blog/article-1 I have tried ...
4
votes
2answers
117 views

Is a trailing slash appropriate before URL parameters?

I understand that http://www.example.com/product and http://www.example.com/product/ can actually be seen as 2 different URLs and is probably best avoided for SEO purposes, but how does this ...
1
vote
2answers
60 views

Will http to https rewrite rule affect SEO ranking?

I recently started serving all my pages over https instead of http. I did so using this rewrite rule: <rule name="force https" stopProcessing="true"> <match url="(.*)" /> ...
1
vote
1answer
24 views

How to rewrite laravel /public directory [duplicate]

So by default the index.php is in the public directory. I want to rewrite the url so that abc.com/public/ becomes abc.com/ ?? I am very new to url rewriting ..
1
vote
1answer
57 views

SEO issue when migrating to wordpress – changing urls and file names etc

I get an issue with the SEO of my website. Before I was on top of Google with "Icecom", but I migrated my website on WordPress. All my urls have changed and the body too... What I did for my new SEO: ...
0
votes
0answers
16 views

URL Rewrite not working for API

I'm attempting to create an API server for a course I'm taking and having an issue with enabling URL rewrite. I have an htaccess file and an api.php, what my goal is is just to be able to go to ...
1
vote
1answer
69 views

“Friendly URLs” rule in .htaccess interfering with some directories

My .htaccess is set up to remove .html from URLs as follows: RewriteEngine on RewriteCond %{http_host} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,NC] RewriteCond ...
0
votes
1answer
35 views

Transitioning from www.example.com/wordpress/abc to www.example.com/abc

The existing corporate website is a non-CMS, dreamweaver dinosaur, with the top level HTML pages residing in the web root directory: httpdocs/. I recently installed WordPress, and the site can now be ...
1
vote
3answers
47 views

IIS7 webpage redirect question

Noob question here. I searched, but couldn't quite find anything that would explain how to do this. I'm using IIS7 on a 2 server web farm with traffic being load balanced to either of the two servers. ...
0
votes
1answer
49 views

Importance of nice url with keywords

Introduction What is the importance of having keywords in your nice formed url, also the position of the keywords in the url. Example I am working on a site which contains multiple branches in 2 ...
2
votes
2answers
71 views

Redirect to other folder but get URL appear the same

I have a web app project located in a directory called issues with several sub directories. The folder structure is as follows: -issues -applications -cli -library -public ...
0
votes
1answer
63 views

Is it possible to redirect https to http? [closed]

I am working on a website with Comodo SSL installed. There are http: links to pages that Chrome and IE-11 complain are not secure and block access to them unless users explicitly allow them when ...
0
votes
0answers
30 views

Using mod_rewrite to set cookie and modify domain name

I have two editions of a website. The mobile and desktop version. All desktop sections of the website have normal urls and mobile sections have subdomain urls suffixed with the word mobile. Example: ...
0
votes
0answers
22 views

Virtual Application stripping / in rewrite rule

I have a virtual application which is deployed into the folder blog. I want to be able to redirect from www.site.com/blog/ to www.site.com/blog. I have tried a number of rules, but can't seem to get ...
0
votes
0answers
14 views

Minimalist RewriteRules but access directories, error pages, etc statically

I am fairly experienced with PHP, but am new to Python. I am generally familiar with mod_rewrite, though I still get mystified by it very often. I am now trying to write a new Python web application ...
1
vote
2answers
39 views

redirecting some parts of a url

ok let me try once again this link [www.mgdezigns.com/cards/festive_silver_purple_ornament_holiday_cards_postcard-239887577090743570.html] needs to be redirected to ...
3
votes
1answer
137 views

.htaccess redirect not working for web alias

I have two domains at one.com: example.com and example.de I would like to redirect from example.com to example.de/en I wanted to use an A record so that example.com points to example.de and then use ...
0
votes
0answers
13 views

URL rewriting removing multiple url variables and replace them with slash [duplicate]

How can I rewrite my URL from index.php?m=feb&p=news to index.php/feb/news
1
vote
1answer
61 views

What URL with French words does Google like?

We are looking for an answer to "what to do with French URL's?" We are going to generate a lot of French URL's this include characters like: L'test tést thîs is a test So we have a few ...
1
vote
0answers
130 views

Redesign with changing URL Structure and SPA impact on SEO [closed]

We run a popular news website and it has been online for around 4 or 5 years. The design is old, code base evolved into spaghetti and the management wants to create a new identity with a complete ...
0
votes
0answers
13 views

Should i change EXISTING (NOT NEW) Urls with underscores to hyphens for SEO? [duplicate]

Please note that this is for existing URLs, not new. I know that Google says it is recommended to have Url's to display a hyphen(-) instead of a underscore(_) in the url as a keyword seperator ...
1
vote
0answers
135 views

Convertion of htaccess rewrite rule to nginx [closed]

Through searching the internet with "converting htaccess to nginx rule" I came up with anilcetin and winginx .htaccess to nginx converter which I doubt it doesn't correctly output what I need. Which ...
-1
votes
0answers
17 views

Hiding and redirecting extensions on my webpage [duplicate]

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php ...
1
vote
2answers
46 views

Hiding and redirecting extensions on my webpage

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php ...
1
vote
1answer
179 views

How to redirect a subdomain to the main domain at a different port with IIS

I am trying to set up as following control.domain.com to http://domain.com:8880/ Plesk is running on that port. Infact if I would like any website hosted on the server if accessed with "control.*" ...
2
votes
2answers
183 views

How is a slash in the URL path interpreted by search engines?

I would like to know your opinions on the following URL structure. Is the following SEO best practice and why? If targeting search term "blue suede shoes"... Would "example.com/blue/suede-shoes/" be ...
1
vote
1answer
73 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
2answers
170 views

Remove folder name from rewritten URLs

Consider this URL: http://example.com/gallery/20141111-some-title In this URL I want to hide gallery/: http://example.com/20141111-some-title How can I achieve this using mod_rewrite? I used ...
2
votes
1answer
48 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
69 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
2answers
173 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
39 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
122 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
154 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
252 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
31 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
368 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
61 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
97 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
775 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
171 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
684 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: ...