Hi everyboy,
I used to have PHP websites and using url rewriting on picture to have SEO friendly urls,
On php I had links like
/image/blablablabla-1234-blablabla
rewriting to:
/image/1234.jpg
by using a url rewrite rule on apache .htaccess file.
So I would like the structure /image/<text>-ID-<text> to return /image/<id>.jpg reguardl...
Searching with mutltiple Parameters
In my app I would like to allow the user to do complex searches based on several parameters, using a simple syntax similar to the GMail functionality when a user can search for "in:inbox is:unread" etc.
However, GMail does a POST with this information and I would like the form to be a GET so that the...
There is index.php and logo.gif files in my server.
I need to change the way of display an adress from example.com/?nr=33&id=foo to example.com/33/foo or example.com/33/foo/. I have type in .htaccess this code
RewriteRule ^([^-]+)/([^-]+)$ /?nr=$1&id=$2 [L].
It almost works, but when I use example.com/33/foo logo.gif (with is used in in...
I have an .htaccess file that is not working properly. And it used to.
Here is the file:
RewriteEngine On
# Category
#Edit
RewriteRule ^edit/([^/]+)/?$ /edit_solutions/index.php?category=$1 [L]
RewriteRule ^edit/?$ /edit_solutions/choose.php [L]
#Report
RewriteRule ^reports/([^/]+)/?$ /report/report.php?project=$1 [L]
RewriteRule ^...
I'm working through a problem where I want to select a different static content file based on the incoming Host header. The simple example is a mapping from URLs to files like this:
www.example.com/images/logo.gif -> \images\logo.gif
skin2.example.com/images/logo.gif -> \images\skin2\logo.gif
skin3.example.com/images/logo.gif -> \imag...
Hello , guys
I need some help on mod rewrite 301 , to redirect my old website address to the new address ,
here is my scenario
ive www.domain1.com/page1/
want to be redirect to domain2.com/page1/
ive to replace all request goes to domain1 with domain2 and keep the page after .com
so watever was after .com should be the same just rep...
Hi, thanks for looking.
I know you can't redirect anchor URLs to another page, but is it possible to redirect a URL to only a single anchor?
So
http://www.example.com/video/{title}
always gets sent to
http://www.example.com/video.php?title={title}#player
The only thing that changes is the title, anchor is always the same... I ne...
I currently have a vhost.conf file, setup for a staging server. The problem I'm running into is that I need to have the staging server actually call (only) images from the production server. So, all other file types will call from the staging server, but any image request pulls data from production server. How would I do this using Apach...
I currently have this rule where I want the page to just render my static content.
RewriteRule ^videos\/coverage\/view\/236159\-([0-9a-zA-Z-]+) http: //website.com/static/236159.html [NC]
However, this doesn't work. It works with a L tag but then the URL is different:
RewriteRule ^videos\/coverage\/view\/236159\-([0-9a-zA-Z-]+) http...
Hello all,
I want to create a plugin for wordpress to automatically serve pages containing data pulled from a provider's API.
The API returns one or more records containing data for that record and I simply want to have the plugin intercept the request, call the API with parameters pulled from the request URI and display the data using...
Ok, so I really don't know much about mod_rewrite and I'm looking over the apache docs and still not figuring this out.
Here is my htaccess (which is mostly just copy & pasted from a site I found):
.htaccess in base dir:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public...
I have a directory ("files") where sub-directories and files are going to be created and stored over time. The directories also need to deliver a directory listing, using "options indexes", but only if a user is authenticated, and authorized. I have that part built, and working, by doing the following:
<Directory /var/www/html/files>
...
I can't for the life of me fathom out why this RewriteCond is causing every request to be sent to my FastCGI application when it should in fact be letting Apache serve up the static resources.
I've added a hello.txt file to my DocumentRoot to demonstrate.
The text file:
ls /Sites/CioccolataTest.webapp/Contents/Resources/static
hello...
Hi to all,
i am trying to use friendly url for my categories.
Example Database
cat_id | parent_id | name | url
1 0 cat1 cat1
2 1 cat2 cat2
My approach to do is to pass the parameter cat with url value for example show.php?cat=cat1
and in .htacce...
I have been taken in to provide some SEO guidance on a website which has been running since 2005. My problem is I want to use clean URLs.
The code that handles the URL is hidden away in some class file. And with over a few thousand lines of code its a struggle to rewrite it.
So I'm think, I have gone through all the products and create...
I just setup a subdomain with the following RewriteCond:
RewriteCond $1 !^search.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?([^/]+)$ search.php?q=$1 [L,NS]
I'm using the same rewrite condition on my main domain and it works perfectly. However, when I set it up on the subdomain, it simply outputs "index.php" when going...
I have set up a few rules based on other questions but now my css breaks
I did have the URL /
/eshop/cart.php?products_id=bla
and everything work fine. but now with my mod rewrite url-
/product/product-title/
It loose the base directory. Is there an option to fix this? So i dont have to go back with the full url in all the img ...
Hi all
I'm writing a mini-MVC application. App architecture:
actions/
templates/
site/
app/
styles/
images/
scripts/
So far, I've got a controller working properly, taking in all requests. However, javascript files are not being rendered properly in the browser; I'm getting a 404 Not Found when I try to load the ...
I have a very long a unfriendly URL an I'm looking to make SEO better for the site:
http://www.site.com/sub-site/index.php?page=nameofpage&locale=en_EN
I would like to have this instead:
http://
www.site.com/sub-site/en/nameofpage
all the URLS are hard coded in the links in the form of:
<a href="index.php?page=nameofpage&locale=e...
Hello everyone,
I'm about to start building a subscription based website that will function much like 37signals offerings in terms of users paying a monthly fee to use the site.
But in my case I would like for them to be able to use their own hosted domain names and have them point to my server.
Is this possible? How do i link up the...