I have links in my site that pass queries to pages that query from an external database. This works fine e.g.
mysite.com/catalog/?tl=flooring
however i want to rewrite this url to appear as
mysite.com/catalog/flooring
Ive tried modifying the rewrite rules in wordpress but it always displays the index page
add_filter('rewrite_rules...
I have some data that is inputted into to a database with spaces. e.g. first and last names. I then need to call that data from the database and display it as a link so i have a friendly URL. I am not sure if I should do this with mod-rewrite or php. What is the best solution?
A solution like below doesn't seem to work
str_replace('- ...
I want to redirect m.example.com to example.com/index.php?type=mobile while inheriting the rules I've already written for example.com...
So, say, I have N rules already defined looking something like:
^view/([A-z]+) index.php?view=$1
^delete/([A-z]+) index.php?delete=$1
^page/view/([A-z]+)/([0-9]+) index.php?view=$1&page=$2
^page/del...
Are the following opening/closing tags necessary for .htaccess mod_rewrite's? I've had .htaccess working without those, but just checking up on htaccess tutorials, many include this tag.
<IfModule mod_rewrite.c> ... </IfModule>
...
I'm toying with Managed Fusion's URL Rewriter and noticed that it adds a couple HTTP headers to IIS response:
X-Rewritten-By: ManagedFusion (rewriter; reverse-proxy; +http://managedfusion.com/)
X-ManagedFusion-Rewriter-Version: 3.5
How can I remove these headers? (I'd like to keep things small for performance reasons.)
Unfortunately...
This is not a duplicate post. I've looked through similar questions on SO but didn't find the solution to my problem.
As someone has already suggested I should do the following to redirect www-url to non-www url (or vice versa):
Here’s the IIS7 rule to remove the WWW prefix from all incoming URLs. Cut and paste this XML fragment into y...
Hello all,
I have a web application runs @ Windows 2008 R2, ASP.NET v4.0.
I installed the Url Rewrite Module, and started to use it as shown in the official examples.
My problem starts when the <rewrite> tag is added to the web.config under <system.webServer> - actually when I try to browse to any page under this current application, ...
Hello,
I need some help. I have a page at /register. However, I also want to be able to view this register page at /book-your-place-now. I know that is possible with .htaccess but I cannot for the live of me get me head around .htaccess files.
...
I have a product-details template in my theme that handles display for different products based on the URL.
By default, WordPress will allow a number to be passed to the template page by appending to the URL: product-details/3/
However, I want to make this to be more SEO Friendly using a slug: product/sandals. Yet, when I do so, WordPr...
This is my app.yaml:
- url: /about|/about/.*
script: about.py
This is my `about.py':
application = webapp.WSGIApplication([(r'^/about$', AboutPage),
(r'^/about/$', Redirect),
(r'.*', ErrorPage)],
debug = True)
I wan...
Hi have an issue with the rewrite mod for IIS7
I have several websites in this example (seasons.com. summer.com, winter.com, spring.com)
All of these domains point to the same folder (g:\websites\seasons\htdocs)
Now the complicated bit.
Summer.com gets rewritten to g:\websites\seasons\htdocs\domains\summer\ so any file in this folder...
I just started using URLRewriter.net with my blog and I have a problem with getting the query string values. I have a rule setting like:
<rewrite url="~/blog.aspx(\?.+)?$"
to="~/hiddenFolder/blog.aspx?mode=default&$2"/>
But when I try to access /blog.aspx?page=1 the page parameter is not passed. Other parameters work great and...
hello friends,
I am using ajax with jQuery in my cakePHP application.
and my javascript function is placed inside a javascript file.
now in my local system the files are kept in "/sample" directory so the the path while i call the function will be
in ajax.js
$.post({url : "/sample/controller/action"})
but after hosting it the u...
Hi there,
I'm trying to redirect a page using PHP (I think it has to be PHP as opposed to .htaccess as there are a lot of pages involved and the information required to do the redirect is held in a datbase).
The page i'm trying to to a redirect from is already re-written, and looks like:
www.example.com/shop/deptartment/section/produc...
Hello,
I guess the title almost says it all.
My original url looks like: http://www.something.com/buy/index.php?p=025823
The .htaccess I'm using looks like this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(\d+)*$ ./index.php?p=$1
The resulting url...
Hi! I'm trying to use the URL rewrite module in Azure but for some reason I can't add a <rewrite> section to the web.config's system.webServer section (as shown on http://msdn.microsoft.com/en-us/library/dd573358.aspx).
I've installed the URL Rewrite Modeul v2via the Web Platform Installer. I'm using Visual Studio 2010 with the v4.0...
Hi. I have a link in my page that look like this: a href=?command=value but when I click the link and the page reloads it first load another include php file. That redirect the user based on the cookie. like this: header('Location: ?lang='.$redirect); So when the page loads the ?command=value is gone.
I need to append &command=value in...
Hi Guys,
I have a Facebook Connect application (IFrame, external website).
When i post to the user's wall using the Old JavaScript API (FB.Connect.streamPublish), im specifying action links, as many people do.
Here's the JSON for my action link:
[{ 'text':'Do something on my site', 'href':'http://www.mysite.com/somerestfulpath' }]
...
Hi, I am trying to rewrite url and it fails. May I know what is wrong? can someone please enlighten me? I placed the code in .htaccess. I have enabled rewrite_module too. thanks.
RewriteEngine On
RewriteRule /place/^([a-zA-Z0-9])$ /placelink.php?lid=$1
For example: domain.com/place/xyz -> domain.com/placelink.php?id=xyz
Update:
I ha...
hello people,
OK I have been messing about with URL rewriting for the last few days and seem to have come to a bit of a dead-end. I have come up with a few solutions that work on some servers and not others, and my hosting company (1and1 - be vary wary of these guys if you choose them as hosts) hasn't been able to help at all.
My prob...