Tag Info

New answers tagged

0

The design pattern you are using is called the "front controller" -- a central entry point for handling requests. Here is a website that shows how to implement that pattern with various webservers. Here is the configuration they recommend for IIS in the web.config file: <?xml version="1.0"?> <configuration> <system.webServer> ...


4

Search engines see both dashes and slashes as word separators, so they will be able to parse either of your URLs. Traditionally slashes in URL paths represent directory structures. Because of this, some users may expect that if you use /blue/suede-shoes/ they should be able to find a page at /blue/ with information about all your blue products. I would ...


2

As far as a search engine is concerned, either is good. Special characters are completely ignored when indexing. Search engines break any URL/URI into terms using word boundaries (programming term) and ignore special characters since they have no value what so ever. Use whatever method feels best to you and your users.


0

Try: RewriteEngine on RewriteRule ^(gallery)\/(.+)$ http://website.com/$2 [R=301]


0

There are many WordPress plugins that will do redirects for you. I use the Quick Page Post Redirect Plugin which adds an Admin page where you can list the redirects. I also use the True Google 404 plugin that uses site search to try to resolve error URLs and keeps a list of any error URLs so that you can add redirects for them.


1

Try <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /gallery/$1 [L] </IfModule>


1

So after some trial and error I came up with a working solution that I'm not quite happy with. But at least it works. Since all "real" images are located in /includes/ or subdirectories I simply rewrote the rule for the images. So this location ~* \.(?:gif|jpe?g|png|ico)$ { expires 168h; add_header Pragma public; add_header Cache-Control ...


1

The source of your problem can be in html or in javascript, and you cannot control the links that other people put on the net too.. And because he finds a page when making a request for it, it indexes it. I miss some information to give answer with code (using a CMS? Other rules in .htaccess, etc…), but here are some ways : Write a permanent redirect in ...



Top 50 recent answers are included