Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
mod_rewrite
- Page 1
Re: Redirect non-www to www cons?
Digital Media
Digital Marketing
Search Engine Strategies
4 Days Ago
by Read a Book
Just as an update to this thread. I noticed weird link structure getting indexed on google after i created the new property with `www` version. Take a look how my links are getting indexed https://www.kupisi.mk/product/index.php?mainCategory=за-дома&productName=елегантен-кујнски-мијалник-од-нерѓосувачки-челик&product_id=44…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Adolfo_1
Solved the problem with this htaccess in mode rewrite ON But I don't understand why. I have to enter friendly url directly href="<?php echo BASE_URL.READ_LEX ?>Provvedimento-di-sospensione-Trib-Cagliari" // OK result = localhost/mysite/readlex/Provvedimento-di-sospensione-Trib-Cagliari href="…
Re: Learning about AI
Community Center
2 Weeks Ago
by Dani
Neither article is published on a site devoted to digital marketing, or written by someone close to the SEO industry, so I take both articles with a grain of salt. However, according to the Tech Crunch article, Google announced a search quality update on Tuesday. I actually spent the first half of this week at an SEO conference where they made the …
Htaccess Problem Url Friendly
Programming
Web Development
2 Weeks Ago
by 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/…
Re: Htaccess Problem Url Friendly
Programming
Web Development
2 Weeks Ago
by Dani
I suppose I’m not properly understanding your question. Do you mean when you go to the URL in your browser localhost/mysite/readlex.php?slug=Le-mura-di-Lucca it doesn’t load, but when you go to the rewritten URL it works fine?
Re: Htaccess Problem Url Friendly
Programming
Web Development
2 Weeks Ago
by Adolfo_1
NO! I meant that URL loads but not friendly I have to put these STATIC URLs inside the text retrieved from the database as I cannot insert php strings. Example from database example that htaccess makes unfriendly : <em><a href="../read-lex.php?slug=Provvedimento-di-sospensione-Trib-Cagliari">Vedi SENTENZA&…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Dani
I apologize that I still am misunderstanding you. I'm confused what you mean by "example from database", because it seems your question is about htaccess and PHP. I'm confused what is being retrieved from the database In your second example, what are the values of BASE_URL and READ_LEX? Additionally, your .htaccess file said …
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Adolfo_1
…: define("BASE_URL", "http://localhost/mysite/"); if($
mod_rewrite
== 'Off') { define("URL_CATEGORY", "category.php?slug="…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Dani
… this php: I see you have on line 3 `if($
mod_rewrite
== 'Off') {`. Where do you set the value of… `$
mod_rewrite
`? How do you tell if it's Off or On? &…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Dani
I also think the problem is that with
mod_rewrite
on, READ_LEX begins with / and with
mod_rewrite
off, READ_LEX *ends* with /. Is the value…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Adolfo_1
> Where do you set the value of $
mod_rewrite
? I set On-Off $
mod_rewrite
in database from Dashboard Admin. Now is always ON…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Adolfo_1
I expressed it badly. They are both dynamics. But: href="<?php echo BASE_URL.READ_LEX ?>Provvedimento-di-sospensione-Trib-Cagliari" // result = localhost/mysite/readlex/Provvedimento-di-sospensione-Trib-Cagliari href="localhost/mysite/readlex.php?slug=Provvedimento-di-sospensione-Trib-Cagliari" // …
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Dani
Isn't that expected behavior?
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Adolfo_1
Thank you for your patience
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Week Ago
by Dani
The .htaccess makes the URL accessible from a friendly URI. However, it does not change any of your HTML code for you. You will still need to modify all of your HTML code to link to the new friendly URI instead of the original URL.
Re: How to Write .htaccess
Programming
Web Development
11 Years Ago
by adam.adamski.96155
[mod rewrite](http://www.sitepoint.com/guide-url-rewriting/)
Re: Mod Rewrite with get variable
Programming
Web Development
11 Years Ago
by LastMitch
**@dan_code_guru** >How do i mod rewrite so that i have a page with a get variable is passed to parameter. Try this **Mod Rewrite Generator**: http://www.generateit.net/mod-rewrite/ If you really want to learn how to write it by hand then read this: http://www.cyberdesignz.com/blog/website-design/url-rewriting-top-5-ways-of-php-url-…
Re: Mod Rewrite with get variable
Programming
Web Development
11 Years Ago
by LastMitch
>LastMitch - thank you for the Mod Rewrite Generator. I have never seen that before and will make my life so much easier - woohoo :) Actually got that **Mod Rewrite Generator** link from **diafol** when he helping someone with it. I can't take credit for finding this link but I do used it and like you mention it's very useful!
Mod Rewrite with get variable
Programming
Web Development
11 Years Ago
by dan_code_guru
How do i mod rewrite so that i have a page with a get variable is passed to parameter. I want page.php?id=67/images to go to images.php?pageId=67 Thanks
Re: Mod Rewrite with get variable
Programming
Web Development
11 Years Ago
by simplypixie
LastMitch - thank you for the Mod Rewrite Generator. I have never seen that before and will make my life so much easier - woohoo :)
Mod Rewrite Help
Programming
Web Development
13 Years Ago
by sacarias40
I already have a mod rewrite directing all traffic in my site through my domain.com/index.php file. i because this is happening, i need another rewrite to make any call to the url of: domain.com/blog to actually go to [url]http://domain.com/blog/index.php[/url] instead of just back to my normal domain.com/index.php is there anybody out …
Mod Rewrite
Digital Media
UI / UX Design
13 Years Ago
by ppetree
I'm getting constant 404's on my mod-rewrites... this was working and I have no clue where to start looking to debug this so I would appreciate some help... ANY help!!! :) [B]This is the error from the error log:[/B] [Sat Mar 26 17:40:36 2011] [error] [client 89.23.133.199] File does not exist: public_html/thesocialstop.com/tennis-…
mod-rewrite on godaddy server
Hardware and Software
Linux and Unix
13 Years Ago
by bjeffries
I am on a godaddy server now and trying this mod-rewrite stuff and it is still not working. I have been searching google now for hours looking for the answer and cannot find it. Here is my entire .htaccess file: #Rewrite Rules Options -MultiViews Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteCond %{…
mod rewrite directories to subdomains help
Hardware and Software
Linux and Unix
17 Years Ago
by dylan34
i have this directories: example.com/mister23/ example.com/mister45/ example.com/mister67/ and so on and i wanna make them look like this mister23.example.com mister45.example.com mister67.example.com i've aleardy setup a wildcard dns and i've edit the vhost.conf file too, all i need is the mod rewrite . tnx allot
mod rewrite - the 3 variables
Programming
Web Development
12 Years Ago
by piotrekw
Hi How to write code mod-rewrite for 3 variables. Ma actualy code: [CODE]AddType text/x-component .htc AddType application/x-httpd-php .html Options FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+)$ index.php?s=$1&pods2=$2&pods3=$…
mod-rewrite rule help
Programming
Web Development
11 Years Ago
by vlowe
Hi, Please help me work out this mod-rewrite issue while trying to make my urls SEF. RewriteEngine On Options +FollowSymLinks # Browse Category RewriteRule ^category/[!/.]*([A-Za-z]+)/?$ /browse.php?cat=$1 [NC,L] # View Item RewriteRule ^view/([0-9]+)/([a-zA-Z0-9-]+)$ /view.php?item_id=$1&sef=$2 [NC] …
Re: Mod rewrite page anchor
Digital Media
UI / UX Design
11 Years Ago
by LastMitch
**@s0wh4t** >I read it's not possible, is it? Did you actually read it closely? Since you didn't understand what was in the link. Then try this **Mod Rewrite Generator**: http://www.generateit.net/mod-rewrite/ If you don't know how to used that either than I don't know what else to tell you.
Re: Mod rewrite page anchor
Digital Media
UI / UX Design
11 Years Ago
by LastMitch
**@s0wh4t** >should be ok? anyway, not working. May I ask what is the issue? You are getting close to the answer just missing some slashes. It's not that hard to used the **Mod Rewrite Generator** Did you try the link: http://www.generateit.net/mod-rewrite/
Re: Mod rewrite page anchor
Digital Media
UI / UX Design
11 Years Ago
by LastMitch
**@s0wh4t** >I've got 3 tabs with Jquery. You never mention this at the beginning. I assume something similiar to this http://jqueryui.com/tabs/ >it wont go there, just says at index page. That's Correct because it's the index page! You can't used **Jquery tabs** as individual pages to **Mod Rewrite** because it's only **1** page! …
BASE href required when using mod rewrite?
Programming
Web Development
12 Years Ago
by minitauros
… a way of ../, and if I rewrite my url using
mod_rewrite
, ../ would point to the wrong directory. So my question would… can I point to my css files correctly when using
mod_rewrite
, [I]without [/I]using the <base> tag (in…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC