Refers to URL rewriting, or the restructuring of a URL to improve readability and/or search engine optimization (SEO).

learn more… | top users | synonyms

-1
votes
0answers
15 views

htaccess rewrite rule based on Cookie

I want to redirect the request to a different site by checking whether the cookie "MY_cookie" is set or not. If its set, redirection should happen. This is the code that i am currently using, But not ...
0
votes
0answers
6 views

wordpress search base rewrite

I have this code: function blog_rewrite_rules(){ global $wp_rewrite; $wp_rewrite->search_base = 'my_search'; $wp_rewrite->pagination_base = 'my_page'; ...
0
votes
1answer
26 views

nginx returning 404 after rewriting to url that exists

I've been banging my head on this one for a while, but could someone please help me figure out why this in my location / block isn't matching ...
0
votes
1answer
7 views

nGinx rewrite if previous rewrite did not find any file

I have a apache rewrite for a site that runs on wordpress like this: RewriteRule ^((images|stylesheets|scripts)/.+)$ /assets/$1 [NC,L] I converted to nGinx which seems like this: rewrite ...
0
votes
0answers
19 views

Joomla .htaccess returns 500

I have a page created in Joomla which is called contentpage. The URL of this page is /contentpage. Now I want when I do /contentpage/category, the page /contentpage opens. I used the following in the ...
0
votes
1answer
7 views

Rewriting a dynamic link

ugly url is /profile.asp?ID=18751&BN=Starbright Property Care and I would like it be /starbright_property_care any know what the rule would be?
1
vote
1answer
17 views

RegEx to rewrite a multi-folder path and file name with unknown and varying folder depth

I need to capture and rewrite a URL path substituting a ~ for each / ending the rewrite with a ~followed by the file name with extension (.jpg) from the original path. The rewrite should NOT be done ...
0
votes
0answers
8 views

.htaccess: Point Secondary Domain to Primary's Subdirectory

I have two domains on a VPS server, the primary "domain1.net" and the secondary "domain2.com". The website I have currently set up for domain2.com resides at domain1.net/subd1/subd2. I'm trying to ...
0
votes
1answer
25 views
+50

Nginx rewrite throws out 404 Not Found

After adding rewrite block, the ubuntu 12.04 server hosting rails 3.2.12 app throws out 404 Not Found error when entering mysite.com/nbhy. Here nbhy is a symlink under root /var/www/ pointing to ...
1
vote
0answers
24 views

Placing Magento in a subdirectory does not work

I have a rule in /root/.htaccess which rewrites mydomain.com/shop to my /root/magento/ directory: RewriteRule ^shop/(.*)$ magento/$1 [L] RewriteRule ^shop magento/index.php But this causes ...
1
vote
1answer
18 views

Rewriting one subdirectory to another

I'm having great difficulty in rewriting my shop domain to my Magento subdirectory. Here's what I'm after: http://mydomain.com/shop/ -> /var/www/magento/ http://mydomain.com/shop/anyFile.php ...
0
votes
0answers
7 views

HTACCES rewrite, just does not wat I want (preserve everything after the slash)

I have been trying different rewrite rules all day, but I just don`t cannot get it working in the way I want. What I need: http://www.example.com/page to redirect to http://example.com/page Now, ...
-1
votes
0answers
14 views

add a rule in my .htaccess file [closed]

Where should I add this rule: RewriteRule ([0-9]+)\-0\-location\-([a-zA-Z0-9\-]+).html bien/$2 to my .htaccess file? <IfModule mod_rewrite.c> RewriteEngine on # Rewrite URLs of the ...
0
votes
1answer
19 views

Remove article title alias from URL

Need to remove article alias from URL using htaccess rewrite module. Current URL`s format /software/graphics/editors/901-artweaver /software/graphics/editors/901-artweaver?info=audit Should look ...
0
votes
1answer
12 views

When trying to redirect using HTACESS, a string “/redirect:/” gets embedded with the url

I have setup two domains to point to the same hosting server. For eg: the domains be : example1.com example2.com I have created a directory called 'home' in my root, and whenever the 2nd domain ...

1 2 3 4 5 164
15 30 50 per page