7 Topics

Member Avatar for
Member Avatar for Adolfo_1

I have problem with this htaccess in STATIC URL RewriteEngine On RewriteRule ^readlex/(.*)$/?$ readlex.php?slug=$1 [NC,L] **DINAMIC URL** work fine only with defined CONSTANT: Example <a href="<?php echo BASE_URL.READ_LEX ?>Le-mura-di-Lucca">Lucca</a> Result = localhost/mysite/readlex/Le-mura-di-Lucca **STATIC URL** not work (??) <a href="localhost/mysite/readlex.php?slug=Le-mura-di-Lucca">Lucca</a> Result = localhost/mysite/readlex.php?slug=Le-mura-di-Lucca">Lucca ***Unfortunately I can't insert the php CONSTANTS in …

Member Avatar for Dani
1
144
Member Avatar for xxyuri

nginx server Problem to add trailing slash if I have two or more subdirectories rewrite ^/([^.]*[^/])$ $1/ permanent; //this is working example if I have one directory [url]http://example.com/foo/[/url] (with trailing slash, conventionally a directory) [url]http://example.com/foo[/url] (without trailing slash, conventionally a file) How can add trailing slash if I have two …

0
177
Member Avatar for sun-tzu

I am trying to build a store site. I want it to have friendly urls such as "/home","/store","/store/5443405", etc. I just cant figure out how to give my url more than one level. i.e. "/home" << one level "/store/5443405" << 2 levels. My php file looks like this right now …

Member Avatar for sun-tzu
0
253
Member Avatar for hericles

Hey, I'm trying to catch the incoming request to my Tomcat server and redirect to another page (a servlet). I don't have Apache installed so no mod_rewrite will work (as I understand it). I need to redirect the incoming request aimed at a standard URL [url]http://www.somesite.com[/url] and send it to …

0
123
Member Avatar for timo2

Hi everyone, having a real problem with htaccess at the moment. If it can be done i bet its really simple but after hours of serching and trying ideas out i have got no where, any help would greatly be appreciated. ---- [B]problem:[/B] What i am trying to do is …

0
108
Member Avatar for andy106

Hi I have added the following code to my htaccess : RewriteEngine On Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301] the above rule just makes the url more SEO friendly so for example [url]www.domain.com/home.php[/url] will become [url]www.domain.com/home[/url] BUT when I have a …

0
109
Member Avatar for hjbavaliya

Hi I want to rewrite my url without display id field in my url for example: From - [url]http://www.domain.com/page.aspx?id=1&title=xyz[/url] To - [url]http://www.domain.com/xyz.aspx[/url] So is it possible to rewrite url without id filed Plz anyone can help me............ thanx in advance..

Member Avatar for kvprajapati
0
88

The End.